:root {
  --brand-1: #0f766e;
  --brand-2: #0891b2;
  --brand-3: #2563eb;
  --accent: #f59e0b;
  --rose: #f43f5e;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #f1f5f9;
  --line: #e5e7eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-3));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

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

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

.nav-link,
.mobile-link {
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  padding: 8px 20px 18px;
  background: rgba(15, 118, 110, 0.96);
  backdrop-filter: blur(14px);
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.active {
  background: rgba(255, 255, 255, 0.16);
}

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

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

.hero-slide.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.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 35%, rgba(8, 145, 178, 0.25), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.46), rgba(2, 6, 23, 0.2)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 52px;
  align-items: center;
  max-width: 1180px;
  min-height: 590px;
  margin: 0 auto;
  padding: 70px 20px 84px;
  color: #fff;
}

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

.hero-kicker,
.page-hero span,
.section-head span,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #a7f3d0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  max-width: 820px;
  color: #fff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  text-shadow: 0 12px 35px rgba(0, 0, 0, 0.42);
}

.hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.75;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  padding: 8px 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-3));
  box-shadow: 0 14px 28px rgba(8, 145, 178, 0.32);
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.ghost-button {
  color: var(--brand-1);
  background: #ecfeff;
}

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

.hero-card {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-card:hover {
  transform: rotate(0deg) translateY(-5px);
}

.hero-card img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.hero-card span {
  display: block;
  padding: 16px 18px;
  color: #fff;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.72);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.42);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

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

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

.hero-dots button.active {
  width: 34px;
  background: #fff;
}

.quick-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  max-width: 1180px;
  margin: -42px auto 0;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 6;
}

.quick-search label {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-1);
  font-weight: 900;
}

.quick-search form div {
  display: flex;
  gap: 12px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a {
  padding: 12px 16px;
  border-radius: 999px;
  color: #0f766e;
  background: #ecfeff;
  font-weight: 800;
}

.content-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 20px 0;
}

.tinted-section {
  margin-top: 72px;
  padding: 42px 38px;
  border-radius: 32px;
  background: linear-gradient(90deg, #ecfeff, #eff6ff);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2,
.page-hero h1,
.detail-info h1,
.detail-text h2 {
  margin: 0;
  color: #111827;
  line-height: 1.18;
}

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

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  background: #0f172a;
}

.large-card .poster-wrap {
  height: 360px;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.7), transparent 60%);
}

.duration-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.duration-badge {
  right: 12px;
  top: 12px;
  padding: 7px 10px;
  background: rgba(15, 23, 42, 0.68);
}

.rank-badge {
  left: 12px;
  top: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--rose));
}

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

.movie-title {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-title:hover {
  color: var(--brand-2);
}

.movie-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 13px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.tag-row span,
.detail-tags a {
  padding: 6px 10px;
  color: #0f766e;
  background: #ccfbf1;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  color: #fff;
  background: #0f172a;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.13);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), rgba(8, 145, 178, 0.12));
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
  display: block;
}

.category-tile strong {
  margin-top: 90px;
  font-size: 22px;
}

.category-tile em {
  max-width: 92%;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
}

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

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

.center-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 20px 0;
}

.compact-hero {
  padding-bottom: 12px;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.filter-panel {
  max-width: 1180px;
  margin: 30px auto 0;
  padding: 0 20px;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 160px 160px 180px auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.filter-grid label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-empty {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.category-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #0f172a;
}

.category-cover img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.category-cover span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.68);
  font-weight: 800;
}

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

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.category-overview-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-overview-card li a {
  color: var(--brand-1);
  font-weight: 700;
}

.detail-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 0;
}

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

.breadcrumb a {
  color: var(--brand-1);
  font-weight: 800;
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 0;
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.video-box {
  position: relative;
  min-height: 520px;
  background: #020617;
}

.site-video {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: contain;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.22));
  cursor: pointer;
}

.play-layer span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-3));
  box-shadow: 0 18px 38px rgba(8, 145, 178, 0.38);
  font-size: 34px;
  text-indent: 4px;
}

.detail-info {
  padding: 34px;
}

.detail-info h1 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 42px);
}

.detail-one-line {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

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

.detail-meta div {
  padding: 13px;
  border-radius: 16px;
  background: #f8fafc;
}

.detail-meta dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.detail-meta dd {
  margin: 5px 0 0;
  color: #111827;
  font-weight: 900;
}

.detail-text {
  max-width: 940px;
}

.detail-text h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-text p {
  margin: 0 0 30px;
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

.site-footer {
  margin-top: 86px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #1e293b, #020617);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #67e8f9;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
  box-shadow: var(--shadow);
  cursor: pointer;
}

.back-to-top.show {
  display: block;
}

@media (max-width: 1080px) {
  .movie-grid.four-col,
  .ranking-list.wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .detail-card,
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-card {
    display: none;
  }

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

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

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

  .mobile-menu.open {
    display: block;
  }

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

  .hero-content {
    padding-top: 52px;
    padding-bottom: 78px;
  }

  .quick-search,
  .footer-inner,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .quick-search form div {
    flex-direction: column;
  }

  .movie-grid.four-col,
  .movie-grid.three-col,
  .ranking-list,
  .ranking-list.wide,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-card {
    border-radius: 22px;
  }

  .video-box,
  .site-video {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .top-nav {
    padding: 0 14px;
  }

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

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

  .hero h1,
  .hero h2 {
    font-size: 36px;
  }

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

  .hero-arrow {
    display: none;
  }

  .content-section,
  .page-hero,
  .detail-shell,
  .filter-panel {
    padding-left: 14px;
    padding-right: 14px;
  }

  .tinted-section {
    margin-left: 14px;
    margin-right: 14px;
    padding: 28px 18px;
  }

  .movie-grid.four-col,
  .movie-grid.three-col,
  .ranking-list,
  .ranking-list.wide,
  .category-grid,
  .category-overview-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .poster-wrap,
  .large-card .poster-wrap {
    height: 330px;
  }

  .detail-info {
    padding: 24px;
  }

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