:root {
  --bg: #f8fdff;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.82);
  --text: #102033;
  --muted: #66788a;
  --line: #d9f2f4;
  --cyan: #05a7c7;
  --cyan-dark: #047f9a;
  --teal: #11b8a6;
  --orange: #ff8a3d;
  --shadow: 0 18px 45px rgba(23, 112, 139, 0.13);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(42, 214, 216, 0.20), transparent 32rem),
    radial-gradient(circle at top left, rgba(61, 165, 255, 0.14), transparent 30rem),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(27, 131, 153, 0.08);
}

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

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 12px 26px rgba(5, 167, 199, 0.28);
  font-size: 15px;
}

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

.desktop-nav a,
.nav-dropdown button,
.mobile-nav a {
  color: #334960;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown button:hover,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--cyan-dark);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 34px;
  left: 0;
  display: grid;
  min-width: 180px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
}

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

.nav-dropdown-menu a {
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-dropdown-menu a:hover {
  background: #e9fbfc;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--cyan-dark);
  background: #e9fbfc;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  gap: 8px;
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(236, 250, 252, 0.75);
}

.hero {
  position: relative;
  min-height: 670px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8fcff 0%, #ffffff 48%, #e5fff7 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.28;
  animation: blobFloat 8s ease-in-out infinite;
}

.hero::before {
  top: -160px;
  right: -70px;
  background: #39d5df;
}

.hero::after {
  bottom: -180px;
  left: -100px;
  background: #2ed9bb;
  animation-delay: -3s;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
  transform: scale(1.015);
  background-size: cover;
  background-position: center;
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(247, 254, 255, 0.98) 0%, rgba(247, 254, 255, 0.88) 42%, rgba(247, 254, 255, 0.18) 100%),
    linear-gradient(180deg, rgba(248, 253, 255, 0.16), rgba(248, 253, 255, 0.92));
}

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

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 44px;
  padding: 92px 0 76px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(5, 167, 199, 0.18);
  border-radius: 999px;
  color: var(--cyan-dark);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(5, 167, 199, 0.10);
  font-size: 13px;
  font-weight: 750;
}

.hero h1,
.hero h2 {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #486071;
  font-size: 18px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 780;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 16px 34px rgba(5, 167, 199, 0.26);
}

.btn.ghost {
  color: var(--cyan-dark);
  border-color: rgba(5, 167, 199, 0.22);
  background: rgba(255, 255, 255, 0.74);
}

.hero-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(29, 85, 104, 0.16);
}

.hero-card h3 {
  margin: 14px 0 6px;
  font-size: 22px;
}

.hero-card p {
  margin: 0;
  font-size: 14px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(4, 127, 154, 0.25);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
}

.section {
  padding: 76px 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.44);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.section-heading h1,
.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 24px;
  border: 1px solid rgba(5, 167, 199, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(17, 184, 166, 0.24), transparent 9rem),
    var(--surface-soft);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(5, 167, 199, 0.34);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-tile p {
  margin: 0 0 18px;
  color: var(--muted);
}

.category-tile span {
  color: var(--cyan-dark);
  font-weight: 800;
}

.filter-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(23, 112, 139, 0.08);
}

.filter-bar label {
  display: grid;
  flex: 1;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #fff;
  outline: 0;
}

.filter-bar input {
  width: 100%;
  padding: 0 15px;
}

.filter-bar select {
  padding: 0 12px;
}

.filter-selects {
  display: flex;
  gap: 10px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(5, 167, 199, 0.13);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(23, 112, 139, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(5, 167, 199, 0.32);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #d8fbff, #ecfff9);
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 167, 199, 0.92);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(5, 167, 199, 0.2);
}

.year-badge {
  left: 12px;
}

.rank-badge {
  right: 12px;
  background: rgba(255, 138, 61, 0.94);
}

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

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 26px;
}

.movie-tags span,
.info-list span,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--cyan-dark);
  background: #eafafb;
  font-size: 12px;
  font-weight: 750;
}

.movie-card h2 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.movie-card h2 a:hover {
  color: var(--cyan-dark);
}

.movie-card p {
  min-height: 68px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: #7c8c9c;
  font-size: 13px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 100px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(5, 167, 199, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.80);
  box-shadow: 0 12px 28px rgba(23, 112, 139, 0.08);
}

.rank-num {
  color: var(--orange);
  font-size: 28px;
  font-weight: 900;
}

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

.rank-row h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-row p {
  margin: 0;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
}

.detail-hero {
  padding: 34px 0 64px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #d8fbff, #ecfff9);
  box-shadow: var(--shadow);
}

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

.detail-main h1 {
  margin: 8px 0 14px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.detail-main .lead {
  margin: 0 0 22px;
  color: #455d70;
  font-size: 18px;
}

.info-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.content-panel {
  padding: 26px;
  border: 1px solid rgba(5, 167, 199, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(23, 112, 139, 0.08);
}

.content-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.content-panel p {
  margin: 0 0 16px;
  color: #4e6578;
}

.player-wrap {
  overflow: hidden;
  border-radius: 28px;
  background: #0a1722;
  box-shadow: 0 24px 58px rgba(16, 32, 51, 0.22);
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a1722;
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a1722;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(17, 184, 166, 0.22), rgba(2, 12, 20, 0.74));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 18px 42px rgba(5, 167, 199, 0.36);
  font-size: 32px;
}

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

.no-results {
  display: none;
  padding: 24px;
  border: 1px dashed rgba(5, 167, 199, 0.32);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.no-results.show {
  display: block;
}

.site-footer {
  margin-top: 40px;
  padding: 58px 0 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}

.footer-brand {
  font-size: 22px;
}

.site-footer p {
  max-width: 440px;
  color: var(--muted);
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #52677a;
}

.footer-links a:hover {
  color: var(--cyan-dark);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #7a8d9e;
  font-size: 14px;
}

@keyframes blobFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(18px, -16px, 0) scale(1.08);
  }
}

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

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

  .hero {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.is-active {
    display: grid;
  }

  .hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 330px;
  }

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

  .section-heading,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-selects {
    flex-wrap: wrap;
  }

  .rank-row {
    grid-template-columns: 58px 82px minmax(0, 1fr);
  }

  .rank-row .btn {
    grid-column: 2 / -1;
    width: fit-content;
  }

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

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

  .brand {
    font-size: 20px;
  }

  .hero-inner {
    padding: 54px 0 64px;
    gap: 24px;
  }

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

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

  .section {
    padding: 52px 0;
  }

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

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

  .rank-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .rank-row img {
    display: none;
  }

  .rank-row .btn {
    grid-column: 2 / -1;
  }
}
