:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.3);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #10b981;
  --accent-dark: #059669;
  --accent-soft: rgba(16, 185, 129, 0.16);
  --cyan: #2dd4bf;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.16), transparent 36rem),
    radial-gradient(circle at 82% 10%, rgba(45, 212, 191, 0.12), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logo-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #052e2b;
  background: linear-gradient(135deg, #34d399, #2dd4bf);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.24);
}

.logo-text {
  font-size: 20px;
  background: linear-gradient(90deg, #34d399, #2dd4bf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav a,
.mobile-nav a {
  color: #e2e8f0;
  border-radius: 12px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.82);
}

.header-search {
  width: min(290px, 28vw);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 100%;
  color: #f8fafc;
  background: rgba(51, 65, 85, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  outline: none;
  padding: 11px 14px 11px 40px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-box input::placeholder {
  color: #94a3b8;
}

.search-box input:focus {
  border-color: rgba(52, 211, 153, 0.72);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
  background: rgba(15, 23, 42, 0.98);
}

.search-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: #f8fafc;
  background: rgba(51, 65, 85, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  cursor: pointer;
}

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

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

.mobile-panel-inner {
  display: grid;
  gap: 16px;
  padding: 16px 0 20px;
}

.mobile-nav {
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  padding: 11px 14px;
  font-size: 15px;
}

.site-main {
  min-height: 72vh;
}

.hero-carousel {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 30%, rgba(16, 185, 129, 0.26), transparent 34rem),
    linear-gradient(135deg, #0f172a, #020617);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.54;
  transform: scale(1.03);
}

.hero-image img.is-hidden {
  opacity: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 43%, rgba(2, 6, 23, 0.1) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, transparent 45%);
}

.hero-content-wrap {
  position: relative;
  z-index: 3;
  min-height: 76vh;
  display: flex;
  align-items: center;
}

.hero-content {
  width: min(720px, 100%);
  padding: 84px 0 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.94);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-title {
  margin: 20px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero-text {
  width: min(620px, 100%);
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
  margin: 0 0 24px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  color: #d1fae5;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(16, 185, 129, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(16, 185, 129, 0.28);
}

.btn-secondary {
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.btn-secondary:hover {
  background: rgba(30, 41, 59, 0.84);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(15, 23, 42, 0.86);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

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

.section {
  padding: 56px 0;
}

.section-tight {
  padding: 34px 0;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a7f3d0;
  font-weight: 800;
}

.link-more:hover {
  color: #ffffff;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.46);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 12%, rgba(16, 185, 129, 0.32), transparent 38%),
    linear-gradient(135deg, #1e293b, #020617);
}

.poster.wide {
  aspect-ratio: 16 / 9;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.poster img.is-hidden {
  opacity: 0;
}

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

.poster::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  content: "";
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), transparent);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.94);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.dark {
  right: 12px;
  left: auto;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.card-body {
  padding: 15px 15px 17px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.card-title a:hover {
  color: #a7f3d0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 9px;
}

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

.card-link {
  display: inline-flex;
  align-items: center;
  color: #34d399;
  font-size: 13px;
  font-weight: 800;
}

.card-link:hover {
  color: #ffffff;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  padding: 22px;
  background:
    radial-gradient(circle at 78% 18%, rgba(16, 185, 129, 0.26), transparent 42%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

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

.category-tile h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.category-tile p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.rank-panel {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rank-list {
  display: grid;
}

.rank-item {
  display: grid;
  grid-template-columns: 70px 80px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #022c22;
  background: linear-gradient(135deg, #34d399, #2dd4bf);
  border-radius: 14px;
  font-weight: 900;
}

.rank-thumb {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #020617);
  border-radius: 14px;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-thumb img.is-hidden {
  opacity: 0;
}

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.rank-heat {
  color: #a7f3d0;
  font-weight: 900;
  text-align: right;
}

.page-hero {
  padding: 64px 0 36px;
  background:
    radial-gradient(circle at 72% 15%, rgba(16, 185, 129, 0.17), transparent 34rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0));
}

.page-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 850px;
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.85;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  outline: none;
  padding: 12px 14px;
}

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

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

.filter-empty {
  display: none;
  padding: 24px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: center;
}

.filter-empty.is-visible {
  display: block;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: #a7f3d0;
}

.breadcrumbs a:hover {
  color: #ffffff;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 86% 16%, rgba(16, 185, 129, 0.2), transparent 34rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.94));
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #1e293b, #020617);
  border-radius: 24px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-poster img.is-hidden {
  opacity: 0;
}

.detail-content h1 {
  margin: 16px 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-content .intro {
  max-width: 780px;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.85;
}

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

.info-item {
  padding: 13px 14px;
  background: rgba(2, 6, 23, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 16px;
}

.info-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.info-value {
  color: #f8fafc;
  font-weight: 750;
}

.player-section {
  padding: 42px 0 22px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 45%, rgba(16, 185, 129, 0.18), transparent 28%),
    #000000;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.video-frame video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 48%, rgba(16, 185, 129, 0.28), transparent 24%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.24));
  border: 0;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  padding-left: 5px;
  color: #022c22;
  background: linear-gradient(135deg, #34d399, #2dd4bf);
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(16, 185, 129, 0.26);
  font-size: 30px;
}

.play-overlay strong {
  font-size: 18px;
  letter-spacing: 0.06em;
}

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

.content-panel {
  display: grid;
  gap: 24px;
  margin: 22px 0 10px;
  padding: 30px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.content-panel h2 {
  margin: 0 0 10px;
  font-size: 25px;
}

.content-panel p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 2;
}

.site-footer {
  margin-top: 56px;
  color: #cbd5e1;
  background: #020617;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  padding: 34px 0;
}

.footer-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 850;
}

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

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

.footer-links a {
  color: #a7f3d0;
  font-weight: 750;
}

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

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

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

  .detail-hero {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

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

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .hero-control {
    display: none;
  }

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

  .section-head {
    display: block;
  }

  .section-head .link-more {
    margin-top: 14px;
  }

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

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

  .rank-heat {
    grid-column: 3;
    text-align: left;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .detail-poster {
    width: min(320px, 100%);
    margin: 0 auto;
  }

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

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  .site-shell {
    width: min(100% - 22px, 1180px);
  }

  .hero-carousel,
  .hero-content-wrap {
    min-height: 72vh;
  }

  .hero-content {
    padding: 72px 0 88px;
  }

  .hero-title {
    font-size: 40px;
  }

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

  .category-tile {
    min-height: auto;
  }

  .content-panel {
    padding: 22px;
  }
}
