:root {
  --page-bg: #020617;
  --panel-bg: rgba(15, 23, 42, 0.82);
  --card-bg: #0f172a;
  --muted-bg: #111827;
  --border-color: rgba(148, 163, 184, 0.16);
  --text-main: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #34d399;
  --accent-deep: #059669;
  --accent-hot: #fb923c;
  --shadow-card: 0 20px 45px rgba(2, 6, 23, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.12), transparent 30rem),
    var(--page-bg);
  color: var(--text-main);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

.container {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.35);
}

.brand-mark span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--text-soft);
  font-weight: 650;
}

.nav-link {
  position: relative;
  padding-block: 24px;
  transition: color 0.25s ease;
}

.nav-link::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  background: var(--accent);
  border-radius: 999px;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--accent);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 13px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.84);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-panel {
  display: none;
  padding: 8px 16px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-link {
  display: block;
  padding: 13px 8px;
  color: var(--text-soft);
  border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: var(--accent);
  background: rgba(52, 211, 153, 0.08);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.72s ease, transform 1.2s ease;
  transform: scale(1.02);
}

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

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 36%),
    radial-gradient(circle at 72% 38%, rgba(52, 211, 153, 0.2), transparent 20rem);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 610px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  padding-top: 36px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 13px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(6, 78, 59, 0.28);
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero p {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.85;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.card-tags span,
.detail-tags a {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(52, 211, 153, 0.11);
  border: 1px solid rgba(52, 211, 153, 0.18);
  font-size: 0.8rem;
}

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

.primary-btn,
.ghost-btn,
.inline-search button,
.hero-search button,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.primary-btn,
.hero-search button,
.inline-search button,
.rank-action {
  border: 0;
  color: #02110d;
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.28);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.58);
}

.primary-btn:hover,
.ghost-btn:hover,
.hero-search button:hover,
.inline-search button:hover,
.rank-action:hover {
  transform: translateY(-2px);
}

.hero-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  z-index: 3;
  display: grid;
  gap: 18px;
}

.hero-search,
.inline-search {
  display: flex;
  width: min(100%, 720px);
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.hero-search input,
.inline-search input,
.section-search {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
}

.hero-search input,
.inline-search input {
  padding: 0 16px;
}

.section-search {
  max-width: 320px;
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
}

.hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-shortcuts a,
.category-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--text-soft);
  background: rgba(15, 23, 42, 0.68);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-shortcuts a {
  padding: 9px 14px;
  border-radius: 999px;
}

.hero-shortcuts a:hover,
.category-strip a:hover {
  color: #ffffff;
  border-color: rgba(52, 211, 153, 0.42);
  transform: translateY(-2px);
}

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

.hero-dot {
  width: 28px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  transition: width 0.22s ease, background 0.22s ease;
}

.hero-dot.is-active {
  width: 48px;
  background: var(--accent);
}

.category-strip {
  padding: 34px 0 10px;
}

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

.category-strip a {
  align-items: flex-start;
  flex-direction: column;
  min-height: 112px;
  padding: 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.category-strip span {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
}

.category-strip strong {
  margin-top: 10px;
  color: #ffffff;
  font-size: 1.15rem;
}

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

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

.section-heading h2,
.page-hero h1,
.watch-heading h1,
.detail-copy h1 {
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.06em;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-heading p,
.page-hero p,
.watch-heading p {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--text-muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.96));
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.34);
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.38);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background-color: #111827;
  background-size: cover;
  background-position: center;
}

.poster-link::after,
.detail-poster::after,
.rank-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 40%, rgba(2, 6, 23, 0.55));
  opacity: 0.72;
}

.quality-badge,
.detail-poster span {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 5px 9px;
  border-radius: 999px;
  color: #042f2e;
  background: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
}

.poster-title {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.movie-card-body {
  padding: 16px;
}

.movie-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.02rem;
  line-height: 1.4;
}

.movie-card h3 a:hover,
.rank-title:hover,
.breadcrumb a:hover {
  color: var(--accent);
}

.movie-meta {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.movie-card p {
  min-height: 4.8em;
  margin: 10px 0 14px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.movie-card.compact-card p {
  min-height: auto;
}

.js-filter-card.is-hidden {
  display: none;
}

.page-hero,
.ranking-hero {
  position: relative;
  padding: 92px 0 70px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(15, 23, 42, 0.96), rgba(6, 78, 59, 0.52)),
    radial-gradient(circle at 82% 22%, rgba(52, 211, 153, 0.24), transparent 26rem);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.page-hero h1,
.watch-heading h1 {
  max-width: 980px;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
}

.inline-search {
  margin-top: 28px;
}

.rank-list {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
}

.rank-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.18);
}

.rank-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.rank-cover span {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
  font-weight: 900;
}

.rank-top .rank-cover span {
  color: #042f2e;
  background: linear-gradient(135deg, #fbbf24, var(--accent-hot));
}

.rank-title {
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 850;
}

.rank-content p {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.detail-hero {
  padding: 32px 0 72px;
  background:
    radial-gradient(circle at 80% 20%, rgba(52, 211, 153, 0.18), transparent 30rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.3), rgba(2, 6, 23, 0));
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
}

.detail-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-xl);
  background-color: #111827;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
}

.detail-copy h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1.02;
}

.detail-copy .lead {
  max-width: 820px;
  margin: 22px 0 24px;
  color: var(--text-soft);
  font-size: 1.18rem;
  line-height: 1.85;
}

.player-section {
  padding: 24px 0 64px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
}

.video-shell.large-player {
  margin-top: 28px;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 10px;
  color: #ffffff;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(52, 211, 153, 0.20), transparent 20rem),
    rgba(2, 6, 23, 0.46);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  box-shadow: 0 18px 42px rgba(16, 185, 129, 0.34);
}

.play-icon::after {
  display: block;
  width: 0;
  height: 0;
  margin: 24px 0 0 31px;
  content: "";
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 21px solid #02110d;
}

.video-shell.is-playing .play-overlay,
.video-shell.is-ready .play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding-bottom: 52px;
}

.detail-article,
.detail-side,
.text-page article {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.18);
}

.detail-article,
.text-page article {
  padding: clamp(24px, 4vw, 42px);
}

.detail-side {
  height: fit-content;
  padding: 24px;
}

.detail-article h2,
.detail-side h2,
.text-page h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 1.5rem;
}

.detail-article p,
.text-page p {
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: 1.03rem;
  line-height: 1.95;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

.detail-side dt {
  color: var(--text-muted);
}

.detail-side dd {
  margin: 0;
  color: #ffffff;
}

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

.watch-page {
  padding: 38px 0 52px;
  background:
    radial-gradient(circle at 74% 10%, rgba(52, 211, 153, 0.18), transparent 28rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.68), rgba(2, 6, 23, 0));
}

.watch-heading {
  margin-top: 18px;
}

.site-footer {
  margin-top: 40px;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  padding: 46px 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: var(--text-muted);
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin-top: 8px;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding: 20px 16px;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.text-page {
  padding: 54px 0;
}

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

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

  .nav-toggle {
    display: flex;
  }

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

  .hero {
    min-height: 640px;
  }

  .hero-content {
    min-height: 540px;
  }

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

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

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

  .detail-poster {
    width: min(100%, 360px);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

  .brand-text {
    font-size: 1.1rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero-panel {
    bottom: 22px;
  }

  .hero-search,
  .inline-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search button,
  .inline-search button {
    width: 100%;
  }

  .section-heading,
  .section-heading.with-search {
    align-items: stretch;
    flex-direction: column;
  }

  .section-search {
    max-width: none;
  }

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

  .movie-card-body {
    padding: 13px;
  }

  .rank-item {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .rank-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .detail-copy h1,
  .page-hero h1,
  .watch-heading h1 {
    font-size: 2.35rem;
  }
}

@media (max-width: 440px) {
  .movie-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.55rem;
  }
}
