:root {
  --page-bg: #f0f9f7;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.88);
  --text: #1f2937;
  --muted: #667085;
  --brand: #98d8c8;
  --brand-dark: #5ba896;
  --brand-deep: #2f766a;
  --line: rgba(47, 118, 106, 0.14);
  --shadow: 0 18px 45px rgba(33, 95, 86, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(152, 216, 200, 0.28), transparent 34rem),
    linear-gradient(180deg, #f7fffd 0%, var(--page-bg) 42%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, rgba(152, 216, 200, 0.96), rgba(91, 168, 150, 0.96));
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(33, 95, 86, 0.16);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-text {
  font-size: clamp(20px, 2.3vw, 28px);
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(23, 92, 79, 0.18);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.site-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.site-search-input,
.inline-search {
  width: min(260px, 28vw);
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 11px 16px;
  color: #12332f;
  background: rgba(255, 255, 255, 0.92);
}

.site-search-form button,
.primary-button,
.secondary-button,
.hero-dot,
.menu-toggle,
.player-start {
  border: 0;
  cursor: pointer;
}

.site-search-form button,
.primary-button {
  border-radius: 999px;
  padding: 11px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-deep));
  box-shadow: 0 12px 24px rgba(47, 118, 106, 0.2);
  font-weight: 800;
}

.secondary-button {
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--brand-deep);
  background: #ffffff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(47, 118, 106, 0.12);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #ffffff;
  background: #14342f;
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 0.9s ease, transform 1.2s ease;
  transform: scale(1.02);
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 38, 34, 0.88) 0%, rgba(9, 38, 34, 0.55) 44%, rgba(9, 38, 34, 0.12) 100%),
    linear-gradient(0deg, rgba(240, 249, 247, 1) 0%, rgba(240, 249, 247, 0) 30%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 86px 0 132px;
}

.hero-copy {
  width: min(660px, 100%);
}

.eyebrow,
.category-pill,
.detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  font-size: 13px;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 6.8vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2.2vw, 21px);
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.hero-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 46px;
  z-index: 3;
  width: min(1220px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 42px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  background: #ffffff;
}

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

.section-panel {
  width: min(1220px, calc(100% - 32px));
  margin: -84px auto 0;
  position: relative;
  z-index: 4;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.section-kicker {
  margin: 0 0 6px;
  color: var(--brand-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2,
.page-header h1,
.detail-content h1 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-header p,
.page-header p {
  max-width: 700px;
  margin: 8px 0 0;
  color: var(--muted);
}

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

.movie-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(47, 118, 106, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(91, 168, 150, 0.38);
  box-shadow: 0 24px 54px rgba(47, 118, 106, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(152, 216, 200, 0.42), rgba(91, 168, 150, 0.18));
}

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

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

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

.movie-card-topline,
.movie-meta,
.movie-tags,
.detail-meta,
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.movie-card-topline {
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.28;
}

.movie-card h3 a:hover,
.footer-links a:hover,
.breadcrumbs a:hover {
  color: var(--brand-dark);
}

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

.movie-meta span:not(:last-child)::after,
.detail-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: rgba(102, 112, 133, 0.72);
}

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

.movie-tags span,
.movie-tags a {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--brand-deep);
  background: rgba(152, 216, 200, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.category-pill {
  padding: 5px 10px;
  color: var(--brand-deep);
  background: rgba(152, 216, 200, 0.2);
}

.page-hero {
  padding: 74px 0 36px;
  background:
    radial-gradient(circle at 18% 20%, rgba(152, 216, 200, 0.34), transparent 30rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 251, 247, 0.96));
}

.page-hero .page-header {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.filter-bar {
  width: min(1220px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.inline-search {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(47, 118, 106, 0.08);
}

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

.category-card {
  display: grid;
  min-height: 220px;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 247, 0.86)),
    radial-gradient(circle at top right, rgba(152, 216, 200, 0.3), transparent 16rem);
  box-shadow: 0 16px 36px rgba(47, 118, 106, 0.1);
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

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

.movie-card-compact {
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: stretch;
}

.movie-card-compact .poster-link {
  aspect-ratio: auto;
  min-height: 168px;
}

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

.movie-card-compact p {
  min-height: 0;
}

.rank-number {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ffb86c, #ff6a88);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(255, 106, 136, 0.25);
}

.detail-hero {
  position: relative;
  color: #ffffff;
  overflow: hidden;
  background: #14342f;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(12px) saturate(1.12);
  transform: scale(1.08);
  opacity: 0.44;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 38, 34, 0.52), rgba(10, 38, 34, 0.92));
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 34px;
  padding: 64px 0 54px;
}

.detail-cover {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

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

.breadcrumbs {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.detail-content h1 {
  margin-bottom: 16px;
  color: #ffffff;
}

.detail-meta {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.detail-lead {
  max-width: 820px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.detail-tags {
  margin-bottom: 28px;
}

.detail-tags span {
  display: inline-flex;
  margin: 0 8px 8px 0;
  padding: 7px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.player-section {
  width: min(1220px, calc(100% - 32px));
  margin: 54px auto 0;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #050b0a;
  box-shadow: 0 28px 70px rgba(6, 36, 32, 0.22);
}

.player-panel video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050b0a;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(47, 118, 106, 0.12), rgba(5, 11, 10, 0.58));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  font-size: 34px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 18px 42px rgba(91, 168, 150, 0.38);
}

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

.article-panel {
  width: min(1220px, calc(100% - 32px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 26px;
}

.text-card {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(47, 118, 106, 0.1);
}

.text-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.text-card p {
  margin: 0 0 18px;
  color: #46515f;
}

.related-section {
  padding-bottom: 72px;
}

.empty-state {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 28px auto;
  padding: 24px;
  border-radius: 20px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
  box-shadow: 0 14px 30px rgba(47, 118, 106, 0.08);
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  color: #d8efe9;
  background: linear-gradient(135deg, #1f2937, #111827);
}

.footer-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 44px 0;
}

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

.footer-inner p {
  max-width: 620px;
  margin: 12px 0 0;
  color: rgba(216, 239, 233, 0.76);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: start;
}

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

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

  .site-search-form {
    display: none;
  }
}

@media (max-width: 820px) {
  .header-inner {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

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

  .site-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding: 8px 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    text-align: center;
  }

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

  .section-header,
  .page-header,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .movie-grid,
  .category-grid,
  .article-panel,
  .detail-wrap {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 280px;
  }
}

@media (max-width: 560px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-compact {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .movie-card-compact .poster-link {
    min-height: 146px;
  }

  .section,
  .page-section {
    padding: 42px 0;
  }

  .section-panel {
    padding: 20px;
  }

  .player-start span {
    width: 78px;
    height: 78px;
  }
}
