:root {
  --teal: #00A3AF;
  --teal-dark: #008C97;
  --teal-soft: #E6F7F8;
  --cyan: #33B8C2;
  --ink: #172033;
  --muted: #667085;
  --line: #e5e7eb;
  --surface: #ffffff;
  --page: #f5f9ff;
  --shadow: 0 18px 45px rgba(16, 24, 40, 0.10);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #f8fbff 0%, #eef7ff 45%, #f5fbff 100%);
}

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

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

.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.86);
  border-bottom: 1px solid rgba(229, 231, 235, 0.88);
  backdrop-filter: blur(16px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 10px 24px rgba(0, 163, 175, 0.30);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #344054;
  font-weight: 600;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--teal-soft);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--teal-dark);
}

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

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

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1000ms ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(0, 163, 175, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0.10) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 720px;
  color: #fff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 820px;
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

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

.hero-actions.center {
  justify-content: center;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 14px 30px rgba(0, 163, 175, 0.28);
}

.primary-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
}

.ghost-btn {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.6);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  color: var(--teal-dark);
  background: #fff;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.36);
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: var(--teal);
}

.page-stack {
  display: grid;
  gap: 58px;
  padding: 52px 0 72px;
}

.page-hero {
  padding: 54px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(0, 163, 175, 0.22), transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #eefafa 100%);
  box-shadow: var(--shadow);
}

.small-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -0.04em;
}

.small-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.centered {
  text-align: center;
}

.centered .eyebrow {
  margin: 0 auto;
}

.search-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-copy h2 {
  margin: 14px 0 8px;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.search-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.search-box-wrap {
  position: relative;
}

.search-input {
  width: 100%;
  height: 58px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: 0;
  color: var(--ink);
  background: #f9fafb;
  font-size: 16px;
  transition: 0.2s ease;
}

.search-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 5px rgba(0, 163, 175, 0.12);
  background: #fff;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  max-height: 460px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-results.open {
  display: grid;
  gap: 8px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: 0.2s ease;
}

.search-result-item:hover {
  background: var(--teal-soft);
}

.search-result-item img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #eef2f7;
}

.search-result-item strong {
  display: block;
  margin-bottom: 4px;
}

.search-result-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.section-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 14px 28px rgba(0, 163, 175, 0.22);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

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

.featured-grid,
.poster-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card,
.content-card,
.rank-item {
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.07);
}

.movie-card {
  overflow: hidden;
  transition: 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.14);
}

.movie-thumb {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #e5f6f8, #eff6ff);
}

.wide-thumb {
  aspect-ratio: 16 / 9;
}

.movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.movie-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
  transition: 0.22s ease;
}

.movie-card:hover .movie-overlay {
  opacity: 1;
}

.overlay-play,
.play-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: 0.22s ease;
}

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

.duration-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 700;
}

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

.movie-title {
  display: -webkit-box;
  min-height: 46px;
  overflow: hidden;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: 0.2s ease;
}

.movie-title:hover {
  color: var(--teal-dark);
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 12px;
  font-weight: 700;
}

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

.movie-card-wide {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.movie-card-wide .movie-thumb {
  height: 100%;
}

.movie-card-wide .movie-title {
  font-size: 18px;
}

.score-section {
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--teal-soft), #fff);
  box-shadow: var(--shadow);
}

.category-cloud,
.category-link-grid,
.page-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-cloud a,
.category-link,
.page-chip {
  padding: 11px 16px;
  border-radius: 999px;
  color: #344054;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
  transition: 0.2s ease;
}

.category-cloud a:hover,
.category-link:hover,
.page-chip:hover {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
  transform: translateY(-2px);
}

.list-stack,
.mini-stack {
  display: grid;
  gap: 16px;
}

.center-action,
.pagination {
  justify-content: center;
  margin-top: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #fb7185, #f97316);
  font-size: 22px;
  font-weight: 900;
}

.rank-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-weight: 800;
}

.mini-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.mini-thumb img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: #eef2f7;
}

.mini-title {
  display: block;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.4;
}

.mini-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 28px;
  padding: 34px 0 72px;
}

.detail-main,
.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 22px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  background: #05070d;
  box-shadow: var(--shadow);
}

.video-element {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #05070d;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.65));
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.player-start.hidden {
  display: none;
}

.player-start-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
  font-size: 30px;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: none;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 14px;
}

.player-message.show {
  display: block;
}

.detail-title-card,
.content-card {
  padding: 24px;
}

.detail-title-card {
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-title-card h1 {
  margin: 16px 0 14px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #667085;
}

.detail-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f5f7fb;
  font-weight: 700;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.content-card p {
  margin: 0 0 14px;
  color: #475467;
  line-height: 1.85;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.accent-card {
  background: linear-gradient(135deg, var(--teal-soft), #fff);
}

.detail-tags .tag-pill {
  font-size: 13px;
}

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

.sticky-card {
  position: sticky;
  top: 92px;
}

.info-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f5;
}

.info-list div:last-child {
  border-bottom: 0;
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  margin: 0;
  font-weight: 800;
}

.site-footer {
  margin-top: 30px;
  color: #d0d5dd;
  background: #121826;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding: 42px 0;
}

.footer-logo {
  color: #fff;
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 420px;
  color: #98a2b3;
  line-height: 1.8;
}

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

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 8px 0;
  color: #b8c0cc;
}

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #98a2b3;
  text-align: center;
  font-size: 13px;
}

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

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

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

  .sticky-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-carousel {
    min-height: 600px;
  }

  .hero-content {
    width: calc(100% - 32px);
  }

  .hero-control {
    display: none;
  }

  .search-panel,
  .footer-grid,
  .movie-card-wide,
  .rank-item {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 30px;
  }

  .featured-grid,
  .poster-grid,
  .compact-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .movie-desc,
  .tag-row {
    display: none;
  }

  .rank-link {
    width: fit-content;
  }
}

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

  .poster-grid,
  .related-grid {
    gap: 14px;
  }

  .hero-content h1 {
    font-size: 40px;
  }
}
