:root {
  --primary-50: #e6f7f7;
  --primary-100: #b3e6e6;
  --primary-400: #1ab0b0;
  --primary-500: #009999;
  --primary-600: #007a7a;
  --secondary-50: #f0f4f8;
  --secondary-100: #d9e2ec;
  --secondary-200: #bcccdc;
  --secondary-500: #627d98;
  --secondary-600: #486581;
  --secondary-700: #334e68;
  --secondary-900: #102a43;
  --text: #243b53;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(16, 42, 67, 0.13);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--secondary-50);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(188, 204, 220, 0.7);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--secondary-900);
  white-space: nowrap;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
  box-shadow: 0 12px 22px rgba(0, 153, 153, 0.25);
}

.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  overflow-x: auto;
}

.main-nav a {
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--secondary-700);
  font-weight: 650;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--primary-600);
  background: var(--primary-50);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--secondary-100);
  color: var(--secondary-900);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--secondary-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 42, 67, 0.92), rgba(16, 42, 67, 0.62), rgba(16, 42, 67, 0.12)),
    linear-gradient(0deg, rgba(16, 42, 67, 0.95), rgba(16, 42, 67, 0.05) 48%, rgba(16, 42, 67, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 56px 0;
}

.hero-copy {
  max-width: 760px;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 153, 153, 0.9);
  box-shadow: 0 12px 24px rgba(0, 153, 153, 0.28);
  font-weight: 700;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

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

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

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

.btn-primary {
  color: var(--white);
  background: var(--primary-500);
  box-shadow: 0 16px 28px rgba(0, 153, 153, 0.28);
}

.btn-primary:hover {
  background: var(--primary-600);
}

.btn-secondary {
  color: var(--secondary-900);
  background: rgba(255, 255, 255, 0.9);
}

.hero-dots {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.section {
  padding: 64px 0;
}

.section.alt {
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-100));
}

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

.section-head h1,
.section-head h2 {
  margin: 0 0 8px;
  color: var(--secondary-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-head p,
.lead {
  margin: 0;
  color: var(--secondary-600);
}

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

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

.movie-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 4px 12px rgba(16, 42, 67, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--secondary-200);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--primary-600);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-year,
.poster-region {
  position: absolute;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.poster-year {
  right: 12px;
  background: rgba(0, 0, 0, 0.68);
}

.poster-region {
  left: 12px;
  background: var(--primary-500);
}

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
}

.movie-info strong {
  color: var(--secondary-900);
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-info em {
  min-height: 46px;
  color: var(--secondary-600);
  font-size: 14px;
  font-style: normal;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-line {
  color: var(--secondary-500);
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag-row span,
.detail-tags span,
.filter-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--primary-600);
  background: var(--primary-50);
  font-size: 12px;
  font-weight: 750;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 380px);
  gap: 22px;
  overflow-x: auto;
  padding: 4px 0 20px;
}

.category-card {
  display: block;
  min-height: 190px;
  padding: 26px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--secondary-900), var(--primary-600));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

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

.category-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
}

.category-card span {
  color: var(--primary-100);
  font-weight: 800;
}

.page-hero {
  padding: 66px 0 42px;
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(0, 153, 153, 0.4), transparent 34%),
    linear-gradient(135deg, var(--secondary-900), #143d5c);
}

.page-hero h1 {
  margin: 0 0 14px;
  max-width: 880px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--white);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 130px;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 4px 12px rgba(16, 42, 67, 0.08);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--white);
  background: var(--primary-500);
  font-size: 20px;
  font-weight: 900;
}

.rank-main h2,
.rank-main h3 {
  margin: 0 0 6px;
  color: var(--secondary-900);
}

.rank-main p {
  margin: 0;
  color: var(--secondary-600);
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--secondary-200);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--secondary-900);
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(0, 153, 153, 0.12);
}

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

.player-card,
.detail-card,
.side-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.player-box {
  position: relative;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.55));
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 50%;
  color: var(--primary-600);
  background: rgba(255, 255, 255, 0.92);
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.detail-content {
  padding: 26px;
}

.detail-content h1 {
  margin: 0 0 12px;
  color: var(--secondary-900);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--secondary-600);
  font-weight: 700;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.article-body h2 {
  margin: 28px 0 12px;
  color: var(--secondary-900);
  font-size: 24px;
}

.article-body p {
  margin: 0 0 16px;
  color: var(--secondary-700);
  font-size: 17px;
}

.side-card {
  padding: 20px;
}

.side-card h2,
.side-card h3 {
  margin: 0 0 14px;
  color: var(--secondary-900);
}

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

.side-link {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-link img {
  width: 94px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  object-fit: cover;
  background: var(--secondary-200);
}

.side-link strong {
  display: block;
  color: var(--secondary-900);
  line-height: 1.35;
}

.side-link span {
  color: var(--secondary-500);
  font-size: 13px;
}

.site-footer {
  margin-top: 72px;
  color: var(--secondary-100);
  background: var(--secondary-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding: 46px 0;
}

.footer-logo {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  max-width: 620px;
  margin: 0;
  color: rgba(217, 226, 236, 0.72);
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

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

.footer-links a {
  color: rgba(217, 226, 236, 0.72);
}

.footer-links a:hover {
  color: var(--primary-100);
}

.footer-bottom {
  padding: 20px 16px;
  border-top: 1px solid rgba(217, 226, 236, 0.16);
  text-align: center;
  color: rgba(217, 226, 236, 0.7);
}

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

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

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

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

  .nav-wrap {
    justify-content: space-between;
  }

  .main-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 72px;
    display: none;
    max-height: 70vh;
    padding: 14px;
    overflow-y: auto;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
    justify-content: stretch;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero,
  .hero-content {
    min-height: 78vh;
  }

  .hero-dots {
    left: 24px;
    right: auto;
    bottom: 22px;
  }

  .section {
    padding: 46px 0;
  }

  .section-head {
    display: block;
  }

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

  .search-panel {
    grid-template-columns: 1fr;
  }

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

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

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