:root {
  --bg: #f8fafc;
  --card: rgba(255, 255, 255, 0.86);
  --line: rgba(20, 184, 166, 0.16);
  --text: #0f172a;
  --muted: #64748b;
  --teal: #0d9488;
  --cyan: #0891b2;
  --dark: #0f172a;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.18), transparent 34rem),
    linear-gradient(135deg, #f8fafc 0%, #ecfeff 52%, #f0fdfa 100%);
  min-height: 100vh;
}

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

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

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.07);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: white;
  font-size: 15px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.26);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  color: #334155;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal);
  background: rgba(20, 184, 166, 0.1);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #334155;
  background: rgba(20, 184, 166, 0.1);
  cursor: pointer;
  font-size: 22px;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 16px;
}

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: #334155;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: white;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 440px);
  align-items: center;
  gap: 48px;
  padding: 84px max(28px, calc((100vw - 1280px) / 2 + 24px));
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-bg::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(45, 212, 191, 0.25), transparent 28rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.96));
}

.hero-content,
.hero-cover {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ccfbf1;
  background: rgba(20, 184, 166, 0.16);
  border: 1px solid rgba(94, 234, 212, 0.24);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--teal);
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.16);
}

.hero h1,
.detail-info h1,
.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero p,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  font-size: 19px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
}

.tag-row span {
  color: var(--teal);
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.13);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 15px;
  font-weight: 900;
  transition: 0.2s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 16px 34px rgba(8, 145, 178, 0.3);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(8, 145, 178, 0.38);
}

.ghost-button {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-cover {
  display: block;
  justify-self: end;
  width: min(100%, 420px);
  aspect-ratio: 2 / 3;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.34);
}

.hero-cover img,
.movie-card img,
.detail-poster,
.category-tile img,
.rank-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: max(28px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 38px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.active {
  background: #5eead4;
}

.quick-panel,
.section-block,
.two-column-block,
.footer-grid,
.category-grid,
.page-hero,
.detail-inner,
.player-section,
.detail-content,
.rank-page {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.quick-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(280px, 1.2fr);
  gap: 22px;
  margin-top: -54px;
  position: relative;
  z-index: 5;
}

.quick-card,
.feature-note,
.detail-content article,
.detail-content aside {
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.quick-card h2,
.feature-note h2,
.section-head h2,
.detail-content h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.05em;
}

.quick-card p,
.feature-note p {
  color: var(--muted);
  line-height: 1.8;
}

.search-box {
  margin-top: 18px;
}

.search-box input {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 16px;
  padding: 0 18px;
  outline: none;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.search-box input:focus {
  border-color: rgba(8, 145, 178, 0.56);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip-row a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.11);
  font-weight: 800;
  border: 1px solid rgba(20, 184, 166, 0.14);
}

.section-block,
.two-column-block {
  padding-top: 70px;
}

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

.section-head a {
  color: var(--teal);
  font-weight: 900;
}

.section-head.compact {
  align-items: center;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 64px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #cbd5e1;
}

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(8, 145, 178, 0.3);
}

.card-body {
  padding: 18px;
}

.card-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 9px 0 8px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.movie-card p {
  margin: 0;
  min-height: 54px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.small-card h3 {
  font-size: 17px;
}

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

.two-column-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

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

.rank-page {
  padding-top: 32px;
}

.rank-item {
  display: grid;
  grid-template-columns: 46px 66px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  transition: 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  font-weight: 900;
}

.rank-item img {
  width: 66px;
  height: 88px;
  border-radius: 14px;
}

.rank-text strong,
.rank-text em {
  display: block;
}

.rank-text strong {
  font-size: 17px;
  margin-bottom: 4px;
}

.rank-text em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
}

.rank-score {
  color: var(--teal);
  font-weight: 900;
  font-size: 18px;
  text-align: right;
}

.page-hero {
  margin-top: 38px;
  min-height: 320px;
  display: flex;
  align-items: center;
  border-radius: 36px;
  color: white;
  background:
    radial-gradient(circle at 78% 20%, rgba(45, 212, 191, 0.34), transparent 20rem),
    linear-gradient(135deg, #0f172a, #115e59 58%, #155e75);
  box-shadow: var(--shadow);
}

.page-hero > div {
  padding: 48px;
}

.page-hero h1 {
  font-size: clamp(42px, 6vw, 70px);
}

.page-search {
  max-width: 620px;
}

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

.category-tile {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 28px;
  color: white;
  background: #0f172a;
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.12);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(15, 23, 42, 0.92));
}

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.68;
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0 20px;
}

.category-tile span {
  margin-top: 150px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
}

.detail-inner {
  position: relative;
  z-index: 2;
  min-height: 570px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: center;
  gap: 46px;
  padding-top: 66px;
  padding-bottom: 66px;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  box-shadow: 0 38px 80px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-info h1 {
  font-size: clamp(42px, 6vw, 72px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}

.large-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.18);
}

.detail-info .primary-button {
  margin-top: 28px;
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 34px 78px rgba(15, 23, 42, 0.25);
  aspect-ratio: 16 / 9;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  color: white;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.68));
}

.play-layer span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 18px 42px rgba(8, 145, 178, 0.38);
  font-size: 28px;
}

.play-layer strong {
  font-size: 20px;
}

.video-shell.playing .play-layer {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding-top: 34px;
}

.detail-content article p {
  color: #334155;
  line-height: 2;
  font-size: 17px;
  margin: 14px 0 26px;
}

.detail-content dl {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.detail-content dt {
  color: var(--muted);
  font-weight: 900;
}

.detail-content dd {
  margin: -8px 0 6px;
  color: #0f172a;
  line-height: 1.7;
}

.site-footer {
  margin-top: 82px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #134e4a 58%, #164e63);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
  padding-top: 48px;
  padding-bottom: 34px;
}

.footer-grid p {
  max-width: 520px;
  color: #cbd5e1;
  line-height: 1.8;
}

.footer-grid h3 {
  color: white;
  margin: 0 0 14px;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 9px 0;
  color: #cbd5e1;
}

.footer-grid a:hover {
  color: #5eead4;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px 30px;
  color: #94a3b8;
  border-top: 1px solid rgba(94, 234, 212, 0.16);
  text-align: center;
}

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

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

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

  .hero-slide {
    grid-template-columns: 1fr 300px;
  }

  .two-column-block,
  .detail-content {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding-top: 52px;
    gap: 28px;
  }

  .hero-cover {
    justify-self: start;
    width: 230px;
  }

  .quick-panel,
  .detail-inner {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    margin-top: 24px;
  }

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

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

  .detail-poster {
    width: 260px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .quick-panel,
  .section-block,
  .two-column-block,
  .footer-grid,
  .category-grid,
  .page-hero,
  .detail-inner,
  .player-section,
  .detail-content,
  .rank-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    font-size: 18px;
  }

  .hero-slide {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-dots {
    left: 18px;
  }

  .hero h1,
  .detail-info h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

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

  .page-hero > div,
  .quick-card,
  .feature-note,
  .detail-content article,
  .detail-content aside {
    padding: 22px;
  }

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

  .rank-item img {
    width: 54px;
    height: 74px;
  }

  .rank-score {
    display: none;
  }
}
