:root {
  color-scheme: light;
  --teal: #0d9488;
  --cyan: #0891b2;
  --blue: #2563eb;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.10);
  --card: rgba(255, 255, 255, 0.92);
  --soft: #f6fbfc;
  --shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(20, 184, 166, 0.12), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.12), transparent 32rem),
    #f8fafc;
  color: var(--ink);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.96), rgba(8, 145, 178, 0.96), rgba(37, 99, 235, 0.96));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.20);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

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

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

.nav-link,
.nav-more-button {
  border: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  padding: 9px 13px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-more-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.nav-more {
  position: relative;
}

.nav-more-menu {
  position: absolute;
  right: 0;
  top: 42px;
  width: 180px;
  padding: 12px;
  display: grid;
  gap: 6px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-more:hover .nav-more-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-more-menu a {
  padding: 9px 10px;
  border-radius: 12px;
}

.nav-more-menu a:hover {
  background: #ecfeff;
  color: var(--teal);
}

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

.top-search input,
.large-search input,
.search-panel input,
.filter-input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  outline: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 11px 14px;
}

.top-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.top-search button,
.large-search button,
.search-panel button {
  border: 0;
  border-radius: 14px;
  padding: 11px 16px;
  color: var(--teal);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #fff;
  border-radius: 12px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.16);
}

.mobile-panel {
  display: none;
  padding: 0 24px 18px;
  gap: 8px;
}

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

.mobile-panel a {
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-carousel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #06121f;
}

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(2px) saturate(1.15);
  transform: scale(1.04);
}

.hero-shade,
.detail-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 15, 27, 0.92), rgba(4, 15, 27, 0.58), rgba(4, 15, 27, 0.76)),
    radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.36), transparent 30rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 720px;
  margin: 0 auto;
  padding: 88px 24px 130px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 54px;
  align-items: center;
}

.hero-kicker,
.detail-kicker,
.section-heading span,
.page-hero span,
.showcase-copy span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 13px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(204, 251, 241, 0.92);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 22px 0 18px;
  color: #fff;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  border-radius: 999px;
  padding: 7px 11px;
  color: #0f766e;
  background: rgba(236, 253, 245, 0.92);
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.secondary-button,
.text-link,
.category-panel-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 900;
  transition: 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--blue));
  box-shadow: 0 16px 30px rgba(8, 145, 178, 0.28);
}

.primary-button:hover,
.secondary-button:hover,
.text-link:hover,
.category-panel-head a:hover {
  transform: translateY(-2px);
}

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

.hero-poster {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(1.5deg);
}

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

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 4;
  width: min(1232px, calc(100% - 48px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.hero-dot {
  border: 0;
  cursor: pointer;
  border-radius: 18px;
  padding: 13px 14px;
  color: rgba(255, 255, 255, 0.80);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.hero-dot.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.90), rgba(37, 99, 235, 0.86));
}

.hero-dot span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.20);
}

.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

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

.section-heading.centered {
  text-align: center;
  display: grid;
  place-items: center;
}

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

.section-heading h2,
.page-hero h1,
.showcase-copy h2 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-heading p,
.page-hero p,
.showcase-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.light h2,
.light p,
.light span {
  color: #fff;
}

.light span {
  background: rgba(255, 255, 255, 0.16);
}

.text-link {
  color: var(--teal);
  background: #ecfeff;
}

.light-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

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

.category-chip-grid a {
  min-height: 88px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #0f766e;
  background: linear-gradient(135deg, #fff, #ecfeff);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  font-weight: 900;
  transition: 0.2s ease;
}

.category-chip-grid a:hover {
  color: #fff;
  transform: translateY(-4px);
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.72);
  transition: 0.22s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #d1fae5, #dbeafe);
}

.card-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: 0.35s ease;
}

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

.score,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.70);
  backdrop-filter: blur(8px);
}

.score {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: linear-gradient(90deg, #f97316, #ef4444);
}

.card-body {
  padding: 17px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

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

.card-body h3 a:hover {
  color: var(--teal);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 13px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

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

.highlight-panel {
  max-width: 1320px;
  margin-top: 72px;
  padding: 42px 24px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(8, 145, 178, 0.94), rgba(37, 99, 235, 0.94)),
    #0f766e;
}

.split-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 34px;
  align-items: center;
  padding-bottom: 72px;
}

.large-search,
.search-panel {
  margin-top: 22px;
  display: flex;
  gap: 12px;
}

.large-search input,
.search-panel input,
.filter-input,
.filter-bar select {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

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

.mini-rank-list a {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.mini-rank-list span,
.ranking-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-weight: 900;
}

.mini-rank-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  max-width: 1280px;
  margin: 42px auto 0;
  padding: 70px 34px;
  border-radius: 34px;
  color: #fff;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.95), rgba(37, 99, 235, 0.92)),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.20), transparent 24rem);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 760px;
}

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

.category-panel {
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.category-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.category-panel-head h2 {
  margin: 0 0 8px;
}

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

.category-panel-head a {
  color: #fff;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  white-space: nowrap;
  align-self: start;
}

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

.category-mini-grid a {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.category-mini-grid img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.category-mini-grid span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 9px 9px;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.filter-bar {
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.ranking-lead {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 12px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 40px 70px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.ranking-row img {
  width: 70px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-row strong {
  display: block;
  margin-bottom: 5px;
}

.ranking-row p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.ranking-row em {
  color: var(--teal);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: #06121f;
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.80);
  margin-bottom: 42px;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-info {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
}

.detail-copy h1 {
  margin: 18px 0 14px;
  color: #fff;
  font-size: clamp(36px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.detail-one-line {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.75;
  max-width: 820px;
}

.detail-tags {
  margin: 18px 0 28px;
}

.player-section {
  padding-top: 44px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #020617;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.32));
  transition: 0.2s ease;
}

.play-overlay span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 32px;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.player-shell.playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

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

.detail-article,
.detail-side {
  border-radius: 28px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 14px;
}

.detail-article p {
  color: #334155;
  line-height: 1.9;
  margin: 0 0 24px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px 14px;
  margin: 0;
}

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

.detail-side dd {
  margin: 0;
  font-weight: 800;
}

.search-page {
  padding-bottom: 72px;
}

.search-status {
  margin: 20px 0;
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  margin-top: 72px;
  background: #0f172a;
  color: #fff;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 26px;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.7;
}

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

.footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
}

.hidden-by-filter {
  display: none !important;
}

@media (max-width: 1100px) {
  .top-search {
    display: none;
  }

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

  .split-showcase,
  .ranking-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .ranking-lead {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-poster,
  .detail-poster {
    max-width: 320px;
  }

  .hero-dots {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-chip-grid,
  .category-overview,
  .filter-bar,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .page-hero {
    margin: 24px 16px 0;
    padding: 42px 22px;
    display: grid;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 66px;
    padding: 0 16px;
  }

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

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

  .hero-content {
    padding: 48px 18px 170px;
  }

  .hero-dots {
    bottom: 18px;
    width: calc(100% - 28px);
  }

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

  .section-wrap {
    padding: 48px 16px 0;
  }

  .section-heading.between {
    display: grid;
  }

  .card-body {
    padding: 13px;
  }

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

  .card-body p,
  .tag-row {
    display: none;
  }

  .highlight-panel {
    border-radius: 0;
  }

  .large-search,
  .search-panel {
    display: grid;
  }

  .ranking-row {
    grid-template-columns: 34px 58px 1fr;
  }

  .ranking-row img {
    width: 58px;
  }

  .detail-inner {
    padding: 28px 16px 46px;
  }
}
