:root {
  --color-emerald: #059669;
  --color-emerald-dark: #047857;
  --color-teal: #0d9488;
  --color-sky: #0284c7;
  --color-slate: #0f172a;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-soft: #f8fafc;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.09);
  --shadow-hover: 0 24px 70px rgba(5, 150, 105, 0.18);
  --radius-large: 28px;
  --radius-card: 22px;
  --max-width: 1280px;
}

* {
  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(--color-text);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 45%, #f8fafc 100%);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

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

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

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.28);
}

.brand-text,
.footer-brand {
  font-size: 24px;
  background: linear-gradient(90deg, var(--color-emerald), var(--color-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.mobile-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--color-emerald-dark);
  background: #ecfdf5;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #ffffff;
}

.top-search input,
.mobile-search input {
  width: 160px;
  border: 0;
  outline: none;
  padding: 10px 14px;
  background: transparent;
}

.top-search button,
.mobile-search button {
  border: 0;
  padding: 10px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #374151;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  background: #ffffff;
}

.mobile-nav nav {
  display: grid;
  gap: 8px;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 16px 0;
}

.mobile-search {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto 18px;
}

.mobile-search input {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 150px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0), #f9fafb);
  z-index: 4;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease, visibility 0.8s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
}

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

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 30%, rgba(16, 185, 129, 0.22), transparent 34%), linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.72) 48%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  align-items: center;
  min-height: 70vh;
  padding: 82px 0 112px;
}

.hero-copy {
  max-width: 720px;
}

.hero-badge,
.section-kicker,
.breadcrumbs a,
.breadcrumbs span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 700;
}

.hero-badge {
  padding: 8px 14px;
  color: #a7f3d0;
  background: rgba(5, 150, 105, 0.16);
  border: 1px solid rgba(167, 243, 208, 0.28);
  backdrop-filter: blur(10px);
}

.hero-title {
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 650px;
  margin: 0 0 24px;
  color: #d1d5db;
  font-size: clamp(17px, 2vw, 22px);
}

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

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
  box-shadow: 0 16px 34px rgba(5, 150, 105, 0.28);
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.button-soft {
  color: var(--color-emerald-dark);
  background: #ecfdf5;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.hero-search {
  display: flex;
  max-width: 580px;
  margin-top: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.hero-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 17px 20px;
  color: #111827;
  background: transparent;
}

.hero-search button {
  border: 0;
  padding: 0 24px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}

.hero-meta span,
.tag-row span,
.meta-pill,
.movie-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  padding: 8px 12px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 38px;
  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.42);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.main-section {
  padding: 70px 0;
}

.main-section.is-soft {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

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

.section-kicker {
  margin-bottom: 10px;
  padding: 6px 12px;
  color: var(--color-emerald-dark);
  background: #ecfdf5;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.section-desc {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 17px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 24px;
}

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(5, 150, 105, 0.28);
  box-shadow: var(--shadow-hover);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #064e3b, #0f172a 54%, #0d9488);
}

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

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

.image-missing {
  opacity: 0;
  visibility: hidden;
}

.rank-badge,
.duration-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.rank-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.duration-badge {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
}

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

.movie-card-body h2 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 9px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 13px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span,
.movie-chip {
  padding: 5px 9px;
  color: var(--color-emerald-dark);
  background: #ecfdf5;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 28px;
  border-radius: var(--radius-large);
  color: #ffffff;
  background: linear-gradient(135deg, #065f46, #0f766e 58%, #0f172a);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: auto -50px -80px auto;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.category-tile h2 {
  position: relative;
  z-index: 2;
  margin: 0 0 14px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.category-tile p {
  position: relative;
  z-index: 2;
  margin: 0 0 24px;
  color: #d1fae5;
}

.category-tile span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 800;
  color: #064e3b;
  background: #ffffff;
}

.inner-hero {
  padding: 70px 0 48px;
  background: radial-gradient(circle at 75% 20%, rgba(5, 150, 105, 0.18), transparent 36%), linear-gradient(180deg, #ffffff, #f8fafc);
}

.inner-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.inner-hero p {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.breadcrumbs a,
.breadcrumbs span {
  padding: 7px 11px;
  color: var(--color-emerald-dark);
  background: #ecfdf5;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(140px, 180px));
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  outline: none;
  padding: 13px 14px;
  color: #111827;
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus,
.top-search input:focus,
.mobile-search input:focus {
  border-color: rgba(5, 150, 105, 0.55);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.detail-hero {
  padding: 36px 0 70px;
  background: radial-gradient(circle at 80% 0%, rgba(20, 184, 166, 0.24), transparent 34%), linear-gradient(180deg, #f9fafb, #ffffff);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 32px;
  align-items: start;
}

.player-box {
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.26);
}

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

.player-ratio video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.68));
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-button {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
  box-shadow: 0 20px 50px rgba(5, 150, 105, 0.36);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-button::before {
  content: "";
  display: block;
  margin-left: 6px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #ffffff;
}

.play-button:hover {
  transform: scale(1.06);
  box-shadow: 0 24px 62px rgba(5, 150, 105, 0.46);
}

.player-error {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 3;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  color: #ffffff;
  text-align: center;
  background: rgba(185, 28, 28, 0.86);
}

.player-error.is-visible {
  display: block;
}

.detail-panel {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #064e3b, #0f172a, #0d9488);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  padding: 24px;
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.detail-info p {
  margin: 0 0 16px;
  color: var(--color-muted);
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.meta-list dt {
  color: #64748b;
  font-weight: 700;
}

.meta-list dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.article-card {
  padding: 34px;
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.article-card + .article-card {
  margin-top: 24px;
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.article-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 20px;
}

.site-footer {
  margin-top: 50px;
  color: #d1d5db;
  background: #020617;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
  padding: 56px 0 34px;
}

.site-footer p {
  max-width: 520px;
  margin: 14px 0 0;
  color: #9ca3af;
}

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

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

.footer-links a {
  color: #9ca3af;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.empty-state {
  display: none;
  padding: 36px;
  border: 1px dashed #cbd5e1;
  border-radius: 24px;
  text-align: center;
  color: var(--color-muted);
  background: #ffffff;
}

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

@media (max-width: 1100px) {
  .top-search {
    display: none;
  }

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

  .detail-panel {
    max-width: 460px;
  }
}

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

  .menu-toggle {
    display: block;
  }

  body.menu-open .mobile-nav {
    display: block;
  }

  .section-head {
    display: block;
  }

  .section-head .button {
    margin-top: 18px;
  }

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

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

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

  .nav-wrap {
    min-height: 64px;
  }

  .brand-text,
  .footer-brand {
    font-size: 20px;
  }

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

  .hero-content {
    padding: 60px 0 96px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  button.button {
    width: 100%;
  }

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search button {
    width: 100%;
    min-height: 48px;
  }

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

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

  .movie-card-body h2 {
    font-size: 15px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .article-card {
    padding: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
