:root {
  --page-bg: #030712;
  --panel-bg: rgba(17, 24, 39, 0.72);
  --panel-strong: #111827;
  --panel-soft: rgba(31, 41, 55, 0.58);
  --line: rgba(75, 85, 99, 0.55);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --muted-2: #6b7280;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --teal: #14b8a6;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(16, 185, 129, 0.16), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(20, 184, 166, 0.13), transparent 30rem),
    var(--page-bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

img,
video {
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(3, 7, 18, 0.86);
  border-bottom: 1px solid rgba(31, 41, 55, 0.88);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  color: white;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.32);
}

.brand-text,
.footer-brand {
  font-size: 21px;
  background: linear-gradient(90deg, var(--emerald-bright), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #d1d5db;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--emerald-bright);
  background: rgba(31, 41, 55, 0.78);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.8);
  color: var(--text);
}

.hero-carousel,
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.97) 0%, rgba(3, 7, 18, 0.82) 38%, rgba(3, 7, 18, 0.35) 72%, rgba(3, 7, 18, 0.78) 100%),
    linear-gradient(0deg, var(--page-bg), transparent 36%);
}

.hero-content,
.page-hero > div {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 12px;
  color: var(--emerald-bright);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(16, 185, 129, 0.36);
  border-radius: 999px;
  background: rgba(6, 78, 59, 0.32);
}

.hero-content h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.08em;
  background: linear-gradient(90deg, var(--emerald-bright), #a7f3d0 48%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content h2 {
  margin: 20px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.hero-desc,
.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #d1d5db;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta {
  margin-top: 22px;
}

.hero-meta span,
.detail-meta span,
.detail-meta a,
.meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(75, 85, 99, 0.55);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 14px 36px rgba(16, 185, 129, 0.28);
}

.btn.ghost {
  color: #e5e7eb;
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.62);
}

.btn.text {
  color: var(--emerald-bright);
}

.btn.small {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 14px;
}

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

.hero-dots button {
  width: 38px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dots button.is-active {
  background: var(--emerald-bright);
}

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

.section-shell.tinted {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: rgba(17, 24, 39, 0.28);
  border-block: 1px solid rgba(31, 41, 55, 0.46);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading span {
  display: block;
  margin-bottom: 8px;
  color: var(--emerald-bright);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.row-heading > a {
  color: var(--emerald-bright);
  font-weight: 800;
}

.feature-grid,
.category-grid,
.category-overview-grid,
.split-section,
.detail-layout {
  display: grid;
  gap: 24px;
}

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

.movie-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.movie-card a {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(55, 65, 81, 0.82);
  border-radius: var(--radius-md);
  background: #111827;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.wide-card .poster-wrap {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
}

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

.movie-card:hover .poster-wrap {
  border-color: rgba(16, 185, 129, 0.85);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.play-chip {
  right: 10px;
  bottom: 10px;
  padding: 5px 10px;
  color: white;
  background: rgba(16, 185, 129, 0.9);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #022c22;
  background: linear-gradient(135deg, #a7f3d0, var(--emerald-bright));
}

.card-body {
  padding-top: 12px;
}

.card-body h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover h3,
.compact-card:hover strong,
.category-panel-title:hover,
.overview-card-title:hover {
  color: var(--emerald-bright);
}

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

.meta-line {
  margin-top: 10px;
  gap: 6px;
}

.meta-line span {
  min-height: 24px;
  padding: 3px 8px;
  color: var(--muted);
  font-size: 12px;
}

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

.category-panel,
.category-overview-card,
.intro-card,
.side-card,
.search-panel {
  border: 1px solid rgba(55, 65, 81, 0.78);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.54));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.category-panel,
.category-overview-card {
  padding: 24px;
}

.category-panel-title,
.overview-card-title {
  display: inline-flex;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-panel p,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.8;
}

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

.mini-links a,
.overview-samples a,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #d1d5db;
  font-size: 13px;
  background: rgba(31, 41, 55, 0.78);
  border: 1px solid rgba(75, 85, 99, 0.5);
}

.mini-links a:hover,
.overview-samples a:hover,
.tag-row span:hover {
  color: var(--emerald-bright);
  border-color: rgba(16, 185, 129, 0.76);
}

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

.compact-list {
  display: grid;
  gap: 12px;
}

.compact-card {
  display: grid;
  grid-template-columns: auto 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(55, 65, 81, 0.72);
  border-radius: var(--radius-md);
  background: rgba(17, 24, 39, 0.72);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.compact-card:hover {
  border-color: rgba(16, 185, 129, 0.82);
  background: rgba(17, 24, 39, 0.95);
  transform: translateY(-2px);
}

.compact-card img {
  width: 92px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.45s ease;
}

.compact-card span {
  min-width: 0;
}

.compact-card strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card em {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-rank {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  color: #022c22;
  font-weight: 900;
  background: var(--emerald-bright);
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(31, 41, 55, 0.88);
  background: rgba(3, 7, 18, 0.82);
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 26px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: 30px;
}

.footer-main p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-content: start;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--emerald-bright);
}

.copyright {
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(31, 41, 55, 0.72);
  color: var(--muted-2);
  text-align: center;
}

.page-hero {
  min-height: 390px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(6, 78, 59, 0.42), transparent 44%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(3, 7, 18, 0.55));
  border-bottom: 1px solid rgba(31, 41, 55, 0.8);
}

.page-hero .hero-bg {
  opacity: 0.36;
}

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

.category-overview-card .btn {
  margin-top: 18px;
}

.filter-bar,
.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
}

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

.filter-bar input,
.filter-bar select,
.search-panel input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(75, 85, 99, 0.76);
  border-radius: 13px;
  outline: none;
  color: var(--text);
  background: rgba(3, 7, 18, 0.58);
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-panel input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.empty-state {
  padding: 32px;
  color: var(--muted);
  text-align: center;
  border: 1px solid rgba(75, 85, 99, 0.6);
  border-radius: var(--radius-lg);
  background: rgba(17, 24, 39, 0.72);
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 80px;
  grid-template-columns: minmax(0, 1fr) 330px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--emerald-bright);
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(55, 65, 81, 0.84);
  border-radius: var(--radius-xl);
  background: black;
  box-shadow: var(--shadow);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.24), rgba(0, 0, 0, 0.58));
  color: white;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.big-play {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 5px;
  color: #022c22;
  font-size: 28px;
  background: linear-gradient(135deg, #a7f3d0, var(--emerald-bright));
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.28);
}

.player-status {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.82);
  transform: translate(-50%, -50%);
}

.movie-detail-content {
  padding-top: 26px;
}

.movie-detail-content h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-meta {
  margin-bottom: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.intro-card {
  margin-top: 18px;
  padding: 24px;
}

.intro-card h2,
.side-card h2 {
  margin: 0 0 12px;
  color: var(--emerald-bright);
  font-size: 22px;
}

.intro-card p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.9;
}

.highlight-intro {
  border-left: 4px solid var(--emerald);
}

.side-sticky {
  position: sticky;
  top: 94px;
}

.side-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(55, 65, 81, 0.84);
  border-radius: var(--radius-xl);
  background: #111827;
  box-shadow: var(--shadow);
}

.side-card {
  margin-top: 18px;
  padding: 18px;
}

.search-results:empty {
  display: none;
}

@media (max-width: 1080px) {
  .six-grid,
  .ranking-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .detail-side {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(75, 85, 99, 0.72);
    border-radius: 18px;
    background: rgba(3, 7, 18, 0.96);
    box-shadow: var(--shadow);
  }

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

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

  .hero-carousel {
    min-height: 610px;
  }

  .hero-content,
  .page-hero > div {
    padding: 70px 0;
  }

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

  .btn {
    width: 100%;
  }

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

  .feature-grid,
  .category-grid,
  .category-overview-grid,
  .split-section,
  .footer-main {
    grid-template-columns: 1fr;
  }

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

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

  .compact-card img {
    width: 82px;
    height: 54px;
  }
}

@media (max-width: 420px) {
  .six-grid,
  .ranking-grid {
    gap: 14px;
  }

  .card-body h3 {
    font-size: 14px;
  }

  .card-body p {
    display: none;
  }
}
