:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --cyan-50: #ecfeff;
  --cyan-500: #06b6d4;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 22px 50px rgba(15, 23, 42, 0.18);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--teal-50), #ffffff 42%, var(--cyan-50));
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--teal-500), var(--cyan-500), var(--blue-500));
  box-shadow: 0 10px 30px rgba(8, 145, 178, 0.28);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
}

.desktop-nav > a,
.nav-dropdown > a {
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav > a:hover,
.nav-dropdown:hover > a {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
  padding: 22px 0;
}

.dropdown-menu {
  position: absolute;
  top: 58px;
  left: -16px;
  min-width: 180px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--gray-800);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
}

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

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--gray-700);
}

.dropdown-menu a:hover {
  background: var(--teal-50);
  color: var(--teal-600);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.header-search input,
.mobile-search input {
  width: 210px;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 6px 8px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  color: var(--teal-600);
  background: var(--white);
  padding: 7px 14px;
  cursor: pointer;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  padding: 8px 12px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mobile-panel nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
}

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

.hero-carousel {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--gray-900), var(--gray-800));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s ease, transform 1.1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.55), rgba(17, 24, 39, 0.28)), var(--bg);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  height: 430px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 44px;
  color: var(--white);
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.88);
  box-shadow: 0 10px 24px rgba(20, 184, 166, 0.25);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-copy p {
  max-width: 670px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-tags span,
.tag-list a,
.meta-pill,
.category-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--teal-600);
  background: var(--white);
  box-shadow: 0 18px 34px rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.6deg);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--white);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 42px 0 22px;
}

.section-title h2,
.section-title h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  color: var(--gray-800);
  letter-spacing: -0.035em;
}

.section-title p {
  margin: 8px 0 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
}

.filter-bar input,
.filter-bar select {
  min-height: 42px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--gray-700);
  background: var(--white);
  outline: 0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.filter-bar button,
.sort-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--gray-700);
  background: var(--gray-200);
  cursor: pointer;
  font-weight: 700;
}

.filter-bar button.is-active,
.sort-btn.is-active {
  color: var(--white);
  background: var(--teal-500);
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-100), var(--cyan-50));
}

.movie-card .poster-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 36px;
  background: rgba(0, 0, 0, 0.36);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
}

.year-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  display: grid;
  gap: 9px;
  padding: 15px;
}

.card-body strong {
  color: var(--gray-800);
  font-size: 17px;
  line-height: 1.35;
}

.card-body em {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
  font-style: normal;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--gray-500);
  font-size: 13px;
}

.card-meta b,
.card-meta i {
  padding: 5px 8px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 700;
}

.card-meta b {
  color: var(--teal-600);
  background: var(--teal-50);
}

.card-meta i {
  color: var(--gray-600);
  background: var(--gray-100);
}

.movie-card-wide {
  flex-direction: row;
}

.movie-card-wide .poster-wrap {
  width: 205px;
  flex: 0 0 205px;
}

.movie-card-wide .poster-wrap img {
  height: 100%;
  aspect-ratio: auto;
}

.rank-panel {
  padding: 24px;
  border-radius: 24px;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-500));
  box-shadow: var(--shadow-lg);
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 142px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
  color: var(--gray-800);
  background: var(--white);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

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

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

.rank-item strong {
  margin-bottom: 6px;
  font-size: 17px;
}

.rank-item em {
  margin-bottom: 8px;
  color: var(--gray-600);
  font-style: normal;
  line-height: 1.45;
}

.rank-item small {
  color: var(--gray-500);
}

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

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

.category-card {
  display: grid;
  gap: 14px;
  min-height: 188px;
  padding: 24px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card strong {
  color: var(--gray-800);
  font-size: 22px;
}

.category-card span {
  color: var(--gray-600);
  line-height: 1.65;
}

.category-card small {
  color: var(--teal-600);
  font-weight: 800;
}

.strip-scroll {
  overflow-x: auto;
  padding-bottom: 10px;
}

.strip-row {
  width: max-content;
  display: flex;
  gap: 20px;
}

.strip-row .movie-card {
  width: 302px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  color: var(--gray-600);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--teal-600);
  font-weight: 700;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--gray-900);
  box-shadow: var(--shadow-lg);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(20, 184, 166, 0.26), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-overlay span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--teal-600);
  background: var(--white);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.content-card,
.side-card,
.plain-card {
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.content-card {
  margin-top: 24px;
  padding: 26px;
}

.content-card h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.content-card h2,
.side-card h2,
.plain-card h2 {
  margin: 24px 0 12px;
  font-size: 22px;
  color: var(--gray-800);
}

.content-card p,
.plain-card p {
  color: var(--gray-700);
  line-height: 1.9;
}

.meta-row,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.meta-pill {
  color: var(--teal-600);
  background: var(--teal-50);
}

.tag-list a {
  color: var(--gray-700);
  background: var(--gray-100);
}

.review-box {
  margin-top: 16px;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal-50), var(--cyan-50));
}

.side-card {
  position: sticky;
  top: 88px;
  padding: 20px;
}

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

.side-card .rank-item {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
}

.side-card .rank-item img {
  width: 96px;
  height: 60px;
}

.side-card .rank-item em {
  display: none;
}

.plain-card {
  padding: 28px;
  margin: 30px 0;
}

.search-empty {
  display: none;
  padding: 54px 20px;
  text-align: center;
  color: var(--gray-500);
}

.search-results {
  min-height: 240px;
}

.pagination-note {
  margin: 24px 0 0;
  color: var(--gray-500);
  text-align: center;
}

.site-footer {
  margin-top: 58px;
  color: var(--white);
  background: linear-gradient(180deg, var(--gray-800), var(--gray-900));
}

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

.footer-inner h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-inner p,
.footer-inner a {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  font-size: 14px;
}

.footer-inner a {
  display: block;
  margin: 8px 0;
}

.footer-inner a:hover {
  color: var(--teal-100);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px;
  color: rgba(255, 255, 255, 0.64);
  text-align: center;
  font-size: 14px;
}

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

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

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

  .hero-poster {
    display: none;
  }

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

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

  .side-card {
    position: static;
  }

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

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

  .logo span:last-child {
    max-width: 176px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

  .hero-copy h1 {
    font-size: 38px;
  }

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

  .section-title {
    display: block;
  }

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

  .movie-card-wide {
    flex-direction: column;
  }

  .movie-card-wide .poster-wrap {
    width: 100%;
    flex-basis: auto;
  }

  .rank-item {
    grid-template-columns: auto 92px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-item img {
    width: 92px;
    height: 62px;
  }

  .rank-item em {
    display: none;
  }

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