* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #f8fafc;
  background: radial-gradient(circle at 12% 8%, rgba(16, 185, 129, 0.16), transparent 28%), linear-gradient(135deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid rgba(51, 65, 85, 0.8);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

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

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #0d9488);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.24);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #cbd5e1;
  font-size: 15px;
  white-space: nowrap;
}

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

.nav-link:hover,
.nav-link.is-active {
  color: #34d399;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.9);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #f8fafc;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 14px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  color: #cbd5e1;
}

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

.hero {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: #020617;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

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

.hero-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.68) 38%, rgba(15, 23, 42, 0.15) 70%), linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 92px;
}

.hero-copy {
  width: min(660px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.88);
  font-size: 13px;
  font-weight: 700;
}

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

.hero p,
.page-hero p,
.lead-text {
  margin: 0 0 24px;
  color: #e2e8f0;
  line-height: 1.8;
  font-size: 18px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-tags span,
.tag-row span {
  padding: 7px 11px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(15, 23, 42, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.primary-button,
.ghost-button {
  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, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: #10b981;
  box-shadow: 0 18px 34px rgba(16, 185, 129, 0.22);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.primary-button:hover {
  background: #059669;
}

.ghost-button {
  border: 1px solid rgba(148, 163, 184, 0.32);
  color: #ecfdf5;
  background: rgba(15, 23, 42, 0.48);
}

.ghost-button:hover {
  border-color: rgba(52, 211, 153, 0.72);
}

.hero-panel {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.45);
}

.hero-dot.is-active {
  width: 28px;
  background: #34d399;
}

.search-band {
  border-top: 1px solid rgba(51, 65, 85, 0.7);
  border-bottom: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.74);
}

.search-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 0;
}

.search-inner h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.search-inner p {
  margin: 0;
  color: #94a3b8;
}

.search-box {
  display: grid;
  gap: 8px;
  width: min(420px, 100%);
  color: #cbd5e1;
  font-size: 14px;
}

.search-box input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  outline: none;
  padding: 0 16px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.9);
}

.search-box input:focus {
  border-color: rgba(52, 211, 153, 0.8);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

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

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

.section-head h2,
.inline-section h2,
.side-card h2,
.story-card h2,
.site-footer h2 {
  margin: 0 0 8px;
  color: #ffffff;
}

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

.section-head p {
  margin: 0;
  color: #94a3b8;
}

.section-link {
  flex: 0 0 auto;
  color: #34d399;
  font-weight: 700;
}

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

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

.movie-card {
  min-width: 0;
}

.poster-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.92);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.36);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.92) 100%);
}

.type-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.88);
}

.type-badge {
  left: 10px;
}

.rank-badge {
  right: 10px;
  background: rgba(234, 179, 8, 0.92);
}

.movie-info {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.movie-info strong {
  min-height: 40px;
  color: #ffffff;
  line-height: 1.35;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster-link:hover .movie-info strong {
  color: #34d399;
}

.movie-info span,
.movie-info em {
  color: #94a3b8;
  font-size: 13px;
  font-style: normal;
}

.movie-info em {
  min-height: 54px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile,
.category-overview-card,
.side-card,
.story-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.72);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.2);
}

.category-tile {
  padding: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.5);
}

.category-tile span {
  display: block;
  margin-bottom: 10px;
  color: #34d399;
  font-weight: 800;
  font-size: 20px;
}

.category-tile strong {
  display: block;
  color: #dbeafe;
  line-height: 1.65;
  font-size: 14px;
}

.category-samples,
.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-samples a,
.mini-links a {
  padding: 6px 9px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
}

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

.compact-head {
  display: block;
}

.ranking-list,
.related-list {
  display: grid;
  gap: 12px;
}

.compact-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.78);
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  transform: translateX(4px);
  background: rgba(51, 65, 85, 0.86);
}

.compact-card img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-card strong {
  display: -webkit-box;
  margin-bottom: 6px;
  color: #ffffff;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-card small {
  color: #94a3b8;
}

.inline-section .content-section {
  width: 100%;
  padding: 0;
}

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

.wide-callout {
  margin-top: 28px;
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.92));
}

.callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-bottom: 22px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #0d9488);
}

.wide-callout h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
}

.wide-callout p {
  margin: 0 auto 28px;
  max-width: 680px;
  color: #cbd5e1;
  line-height: 1.75;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  padding: 96px 0 70px;
  overflow: hidden;
  background: radial-gradient(circle at 12% 12%, rgba(16, 185, 129, 0.22), transparent 32%), linear-gradient(135deg, #0f172a, #1e293b);
}

.small-hero h1 {
  max-width: 780px;
}

.small-hero p {
  max-width: 760px;
}

.page-search {
  margin-top: 30px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
}

.category-poster-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-poster-strip img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.category-overview-card h2 {
  margin: 4px 0 10px;
}

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

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(1.05);
  transform: scale(1.04);
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.45)), linear-gradient(180deg, transparent 20%, #0f172a 100%);
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 46px;
  align-items: end;
  min-height: 620px;
  padding: 90px 0 70px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 34px 80px rgba(2, 6, 23, 0.58);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: #cbd5e1;
}

.breadcrumb a {
  color: #34d399;
}

.detail-copy {
  max-width: 760px;
}

.detail-content {
  width: 100%;
  padding-top: 34px;
}

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

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  color: #ffffff;
  background: #000000;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(2, 6, 23, 0.72));
}

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

.play-ring {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.92);
  box-shadow: 0 18px 46px rgba(16, 185, 129, 0.32);
  font-size: 34px;
}

.story-card,
.side-card {
  margin-top: 22px;
  padding: 26px;
}

.story-card p {
  margin: 0;
  color: #dbeafe;
  line-height: 1.9;
}

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

.meta-list div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
}

.meta-list dt {
  color: #94a3b8;
}

.meta-list dd {
  margin: 0;
  color: #ffffff;
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid rgba(51, 65, 85, 0.8);
  background: #020617;
}

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

.footer-logo {
  margin-bottom: 16px;
  font-size: 20px;
}

.footer-text {
  margin: 0;
  color: #94a3b8;
  line-height: 1.75;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #94a3b8;
}

.footer-links a:hover {
  color: #34d399;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(51, 65, 85, 0.8);
  color: #64748b;
  font-size: 14px;
}

[data-card].is-hidden {
  display: none;
}

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }

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

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

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

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

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

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

  .menu-button {
    display: block;
  }

  .hero {
    height: 600px;
  }

  .search-inner,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .detail-layout {
    gap: 26px;
    align-items: center;
    padding-top: 50px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container,
  .content-section,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    padding-bottom: 76px;
  }

  .hero p,
  .page-hero p,
  .lead-text {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

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

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

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

  .category-poster-strip {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  .compact-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .compact-card img {
    width: 86px;
    height: 58px;
  }

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