* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #0f172a;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f1f5f9 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #061414;
  font-weight: 900;
  background: linear-gradient(135deg, #34d399 0%, #22d3ee 100%);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.38);
}

.brand-text,
.footer-brand {
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #34d399 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.desktop-nav > a,
.nav-drop > button,
.mobile-panel a {
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav > a:hover,
.nav-drop > button:hover,
.mobile-panel a:hover {
  color: #34d399;
}

.nav-drop {
  position: relative;
}

.nav-drop > button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-drop-menu {
  position: absolute;
  top: 32px;
  right: 0;
  width: 188px;
  padding: 8px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.36);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.nav-drop:hover .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-menu a,
.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
}

.nav-drop-menu a:hover,
.mobile-panel a:hover {
  background: rgba(51, 65, 85, 0.9);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input {
  width: 220px;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  outline: none;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(51, 65, 85, 0.74);
}

.top-search input:focus {
  border-color: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}

.top-search button,
.primary-btn,
.ghost-btn,
.filter-bar button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.primary-btn,
.filter-bar button {
  color: #052e2b;
  padding: 10px 18px;
  background: linear-gradient(135deg, #34d399 0%, #22d3ee 100%);
  box-shadow: 0 14px 30px rgba(20, 184, 166, 0.24);
}

.ghost-btn {
  color: #ffffff;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.top-search button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.filter-bar button:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.mobile-panel.open {
  display: grid;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.68), rgba(2, 6, 23, 0.44)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 22%, rgba(16, 185, 129, 0.24), transparent 30%),
    radial-gradient(circle at 78% 36%, rgba(34, 211, 238, 0.22), transparent 26%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.12) 0%, rgba(2, 6, 23, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  gap: 54px;
  align-items: center;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  color: #d1fae5;
  border: 1px solid rgba(52, 211, 153, 0.42);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero h1 {
  max-width: 760px;
  margin: 20px 0 10px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 42px);
  color: #6ee7b7;
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(226, 232, 240, 0.92);
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-tags {
  margin: 22px 0 28px;
}

.hero-tags span,
.card-tags span,
.detail-tags span {
  color: #065f46;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  background: #d1fae5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.48);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  z-index: 2;
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

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

.hero-dots button {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dots button.active {
  background: linear-gradient(90deg, #34d399, #22d3ee);
}

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

.section {
  padding: 64px 0;
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: #059669;
  font-weight: 900;
}

.section h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-desc,
.page-title p,
.detail-title p,
.category-card p {
  color: #64748b;
  line-height: 1.8;
}

.more-link {
  color: #059669;
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(16, 185, 129, 0.36);
  box-shadow: 0 24px 62px rgba(15, 23, 42, 0.14);
}

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.card-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.2s ease;
}

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

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

.card-year {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 17px;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #059669;
}

.card-body p {
  min-height: 50px;
  margin: 0;
  color: #64748b;
  line-height: 1.7;
  font-size: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: #475569;
  font-size: 13px;
}

.card-meta span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #f1f5f9;
}

.dark-band {
  color: #ffffff;
  background:
    radial-gradient(circle at 16% 14%, rgba(16, 185, 129, 0.18), transparent 28%),
    linear-gradient(180deg, #0f172a 0%, #020617 100%);
}

.dark-band .section h2,
.dark-band .section-desc {
  color: #ffffff;
}

.dark-band .section-desc {
  color: #cbd5e1;
}

.rank-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.rank-feature {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.rank-feature img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.rank-feature h3 {
  margin: 12px 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

.rank-feature p {
  color: #cbd5e1;
  line-height: 1.85;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-item:hover {
  background: rgba(16, 185, 129, 0.18);
}

.rank-num {
  color: #6ee7b7;
  font-weight: 900;
  font-size: 18px;
}

.rank-item img {
  width: 54px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-title {
  color: #ffffff;
  font-weight: 800;
}

.rank-year {
  color: #cbd5e1;
  font-size: 13px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 28px;
  color: #ffffff;
  min-height: 230px;
  background: linear-gradient(135deg, #0f172a, #064e3b 56%, #0e7490);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.category-card::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -42px;
  top: -40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.category-card h2,
.category-card h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: 28px;
}

.category-card p {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
}

.category-thumbs {
  position: relative;
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.category-thumbs img {
  width: 68px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.24);
}

.page-hero {
  color: #ffffff;
  padding: 72px 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.22), transparent 28%),
    linear-gradient(135deg, #0f172a 0%, #064e3b 58%, #0e7490 100%);
}

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

.page-title h1,
.page-title p {
  color: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #bfdbfe;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #6ee7b7;
}

.filter-card {
  margin: -34px auto 40px;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 160px 160px auto;
  gap: 12px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 12px 14px;
  outline: none;
  background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 44px 0 70px;
}

.player-card,
.detail-card,
.side-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.09);
  overflow: hidden;
}

.player-card {
  background: #020617;
}

.video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  cursor: pointer;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.72));
}

.play-cover[hidden] {
  display: none;
}

.play-cover span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  color: #052e2b;
  font-size: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d399 0%, #22d3ee 100%);
  box-shadow: 0 26px 55px rgba(20, 184, 166, 0.34);
}

.detail-card {
  padding: 28px;
  margin-top: 22px;
}

.detail-title h1 {
  margin-bottom: 12px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.detail-meta span {
  color: #334155;
  border-radius: 999px;
  padding: 7px 12px;
  background: #f1f5f9;
  font-weight: 700;
  font-size: 14px;
}

.detail-card h2,
.side-card h2 {
  margin: 26px 0 12px;
  font-size: 24px;
}

.detail-card p {
  color: #475569;
  line-height: 1.95;
}

.side-card {
  padding: 18px;
}

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

.side-link {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
}

.side-link:hover {
  background: #f1f5f9;
}

.side-link img {
  width: 66px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
}

.side-link strong {
  display: block;
  margin-bottom: 6px;
}

.side-link span {
  color: #64748b;
  font-size: 13px;
}

.site-footer {
  color: #cbd5e1;
  padding: 48px 0 24px;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

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

.footer-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 14px;
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 56px 0 88px;
  }

  .hero-poster {
    width: min(300px, 72vw);
    transform: none;
  }

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

  .rank-panel,
  .rank-feature,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .header-inner {
    width: min(100% - 22px, 1180px);
  }

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

  .hero,
  .hero-content {
    min-height: 620px;
  }

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

  .hero p {
    font-size: 15px;
  }

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

  .section-head,
  .list-head {
    align-items: start;
    flex-direction: column;
  }

  .rank-item {
    grid-template-columns: 40px 48px 1fr;
  }

  .rank-year {
    display: none;
  }
}
