:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-soft: #ccfbf1;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --gold: #ca8a04;
  --ink: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --soft: #f8fafc;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #f0fdfa 0%, #eff6ff 38%, #ffffff 100%);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(13, 148, 136, 0.14);
  box-shadow: 0 6px 24px rgba(13, 148, 136, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1200px;
  height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.28);
}

.brand-text,
.footer-brand {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, var(--teal-dark), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.desktop-nav a,
.mobile-menu a {
  color: #334155;
  font-weight: 600;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-menu a:hover,
.mobile-menu a.is-active {
  color: var(--teal-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
}

.top-search input,
.mobile-search input,
.filter-controls input,
.filter-controls select,
.search-panel input,
.search-panel select {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
  width: 210px;
  padding: 10px 44px 10px 16px;
}

.top-search button {
  position: absolute;
  right: 5px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  cursor: pointer;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: #f1f5f9;
  cursor: pointer;
}

.mobile-menu {
  padding: 16px 24px 22px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
}

.mobile-menu nav {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.mobile-search {
  gap: 8px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
}

.mobile-search button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  cursor: pointer;
}

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

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

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-slide.is-active .hero-bg {
  animation: heroZoom 8s ease forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.58) 48%, rgba(2, 6, 23, 0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-kicker {
  color: #5eead4;
  margin-bottom: 18px;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(45, 212, 191, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0);
  }
}

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

.hero p {
  max-width: 620px;
  margin: 0 0 26px;
  color: #dbeafe;
  font-size: clamp(17px, 2.2vw, 22px);
}

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

.hero-tags span,
.detail-tags span,
.card-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 14px;
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 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) scale(1.02);
}

.btn-primary,
.btn-small {
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
}

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

.btn-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  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.is-active {
  width: 34px;
  background: #2dd4bf;
}

.section {
  padding: 72px 0;
}

.soft-white {
  background: rgba(255, 255, 255, 0.58);
}

.gradient-section {
  background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 100%);
}

.gradient-section.alt {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdfa 100%);
}

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

.section-head h2,
.page-hero h1,
.detail-title-wrap h1 {
  margin: 4px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-link,
.strip-head a,
.info-card a {
  color: var(--teal-dark);
  font-weight: 800;
}

.section-kicker.blue {
  color: var(--blue);
}

.section-kicker.gold {
  color: var(--gold);
}

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

.small-grid {
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

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

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.78) 100%);
  opacity: 0.8;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(13, 148, 136, 0.92);
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.35);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(13, 148, 136, 0.92);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  margin-bottom: 8px;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.card-title:hover {
  color: var(--teal-dark);
}

.card-body p {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta span {
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 12px;
  font-weight: 700;
}

.category-strip {
  margin-top: 46px;
}

.category-strip:first-of-type {
  margin-top: 0;
}

.strip-head h3 {
  margin: 0;
  border-left: 5px solid var(--teal);
  padding-left: 14px;
  font-size: 26px;
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: auto 92px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.rank-number {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold), #f97316);
  font-weight: 900;
}

.rank-card img {
  width: 92px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-card strong,
.rank-card em {
  display: block;
}

.rank-card strong {
  margin-bottom: 4px;
  font-size: 17px;
}

.rank-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  color: #ffffff;
  background: radial-gradient(circle at 20% 15%, rgba(45, 212, 191, 0.45), transparent 34%), linear-gradient(135deg, #0f172a 0%, #0f766e 58%, #1d4ed8 100%);
}

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

.page-hero .section-kicker,
.detail-hero .section-kicker {
  color: #5eead4;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb.light {
  color: #dbeafe;
}

.breadcrumb a {
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 26px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 0.5s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.88));
}

.category-card div {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  color: #ffffff;
}

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

.category-card p {
  max-width: 560px;
  margin: 0 0 18px;
  color: #e0f2fe;
}

.filter-panel,
.search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  border: 1px solid rgba(13, 148, 136, 0.16);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.filter-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.filter-controls,
.search-panel {
  flex-wrap: wrap;
}

.filter-controls {
  display: flex;
  gap: 10px;
}

.filter-controls input,
.filter-controls select,
.search-panel input,
.search-panel select {
  min-height: 44px;
  padding: 0 16px;
}

.search-panel input {
  flex: 1;
  min-width: 260px;
}

.detail-hero {
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  padding: 110px 0 60px;
  background: #020617;
}

.detail-bg,
.detail-overlay {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px);
  transform: scale(1.03);
}

.detail-overlay {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.3));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
}

.detail-title-wrap {
  max-width: 820px;
}

.detail-title-wrap p {
  max-width: 760px;
  margin: 18px 0 22px;
  color: #dbeafe;
  font-size: 20px;
}

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

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

.detail-main,
.detail-side {
  min-width: 0;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 22px 55px rgba(2, 6, 23, 0.28);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.58));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 18px 38px rgba(13, 148, 136, 0.32);
  font-size: 32px;
  line-height: 1;
}

.content-card,
.side-card {
  margin-top: 24px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 24px;
  padding: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.content-card h2,
.info-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

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

.content-card p:last-child {
  margin-bottom: 0;
}

.poster-card {
  margin-top: 0;
  padding: 0;
  overflow: hidden;
}

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

.info-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.info-card dt {
  color: var(--muted);
  font-weight: 700;
}

.info-card dd {
  margin: 0;
  font-weight: 800;
}

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

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

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px 32px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 36px;
}

.footer-inner p {
  max-width: 520px;
  margin: 16px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: flex-end;
}

.footer-links a {
  color: #cbd5e1;
  font-weight: 700;
}

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

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

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 20px;
  padding: 36px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 16px;
  }

  .top-search input {
    width: 180px;
  }

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
  }

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

@media (max-width: 860px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-inner {
    height: 66px;
    padding: 0 18px;
  }

  .hero {
    min-height: 600px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.9));
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 92px;
  }

  .section {
    padding: 54px 0;
  }

  .section-head,
  .strip-head,
  .filter-panel,
  .search-panel {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .filter-controls {
    width: 100%;
    flex-direction: column;
  }

  .filter-controls input,
  .filter-controls select,
  .search-panel input,
  .search-panel select,
  .search-panel button {
    width: 100%;
  }

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

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }

  .brand-text {
    font-size: 21px;
  }

  .hero h1,
  .page-hero h1,
  .detail-title-wrap h1 {
    font-size: 36px;
  }

  .hero p,
  .detail-title-wrap p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: auto 76px 1fr;
  }

  .rank-card img {
    width: 76px;
    height: 58px;
  }

  .content-card,
  .side-card {
    padding: 20px;
  }

  .poster-card {
    padding: 0;
  }
}
