:root {
  --mist-50: #f8fafb;
  --mist-100: #f0f4f7;
  --mist-200: #dfe6ec;
  --mist-300: #c7d4dd;
  --mist-500: #788796;
  --mist-600: #5a6774;
  --mist-700: #4d5965;
  --mist-900: #3e4750;
  --forest-50: #f3f8f4;
  --forest-100: #e1ede4;
  --forest-500: #4d8862;
  --forest-600: #3a6e4d;
  --forest-700: #30593f;
  --stream-50: #f0f9ff;
  --stream-500: #0c9de9;
  --sunset-500: #fe7a16;
  --white: #ffffff;
  --black: #000000;
  --shadow-soft: 0 8px 24px rgba(28, 45, 55, 0.08);
  --shadow-hover: 0 24px 48px rgba(28, 45, 55, 0.14);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--mist-900);
  background: var(--mist-50);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

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.94);
  border-bottom: 1px solid rgba(199, 212, 221, 0.75);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--mist-900);
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--forest-600), var(--stream-500));
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(58, 110, 77, 0.24);
}

.brand-text {
  font-size: 22px;
  letter-spacing: -0.02em;
}

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

.nav-link {
  position: relative;
  color: var(--mist-600);
  font-weight: 700;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--forest-600);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -23px;
  height: 3px;
  border-radius: 999px;
  background: var(--forest-600);
}

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

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--mist-900);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 12px 16px 18px;
  border-top: 1px solid var(--mist-200);
}

.mobile-nav .nav-link {
  display: block;
  padding: 12px 6px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: #111821;
}

.hero-stage {
  position: relative;
  min-height: 80vh;
}

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

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 80vh;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 18, 22, 0.88), rgba(9, 18, 22, 0.45), rgba(9, 18, 22, 0.2)), linear-gradient(0deg, rgba(9, 18, 22, 0.85), rgba(9, 18, 22, 0.05));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 128px;
}

.hero-copy {
  width: min(720px, 100%);
  color: var(--white);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--forest-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 14px;
  color: var(--mist-900);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.25;
}

.hero-copy p {
  width: min(680px, 100%);
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.3vw, 24px);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--forest-700);
  background: var(--forest-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags .pill {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-buttons,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--forest-600), var(--stream-500));
  box-shadow: 0 14px 28px rgba(12, 157, 233, 0.22);
}

.btn.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.btn.ghost.dark {
  color: var(--mist-900);
  border-color: var(--mist-200);
  background: var(--white);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  color: var(--white);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 42px;
  line-height: 1;
  transform: translateY(-50%);
}

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

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

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

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

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

.hero-thumb-row {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -82px;
  padding-bottom: 28px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 94px;
  padding: 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  backdrop-filter: blur(18px);
}

.hero-thumb img {
  width: 78px;
  height: 74px;
  object-fit: cover;
  border-radius: 14px;
}

.hero-thumb span {
  font-weight: 800;
}

.section {
  padding: 82px 0;
}

.section.white {
  background: var(--white);
}

.section.mist {
  background: var(--mist-50);
}

.gradient-soft {
  background: linear-gradient(135deg, var(--forest-50), var(--stream-50));
}

.section-head {
  margin-bottom: 36px;
}

.section-head.center {
  text-align: center;
}

.section-head.center p {
  margin: 0 auto;
}

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

.section-head p,
.page-hero p {
  width: min(720px, 100%);
  color: var(--mist-600);
  font-size: 18px;
}

.text-link {
  color: var(--forest-600);
  font-weight: 900;
}

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

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

.card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(223, 230, 236, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  border-color: rgba(77, 136, 98, 0.35);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mist-100);
}

.card-cover img,
.wide-cover img,
.detail-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), transparent 58%);
  opacity: 0.82;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  opacity: 0;
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%) scale(0.84);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge,
.rank-badge,
.heat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.year-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--white);
  background: var(--sunset-500);
}

.heat-badge {
  color: var(--forest-700);
  background: var(--forest-100);
}

.card-body {
  padding: 20px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--mist-500);
  font-size: 13px;
  font-weight: 800;
}

.card-body h3 a,
.wide-content h3 a {
  transition: color 0.25s ease;
}

.card-body h3 a:hover,
.wide-content h3 a:hover {
  color: var(--forest-600);
}

.card-body p {
  margin-bottom: 16px;
  color: var(--mist-600);
}

.wide-list {
  display: grid;
  gap: 18px;
}

.wide-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 190px;
}

.wide-cover {
  position: relative;
  overflow: hidden;
  background: var(--mist-100);
}

.wide-content {
  padding: 24px;
}

.wide-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--mist-500);
  font-size: 13px;
  font-weight: 900;
}

.order {
  color: var(--sunset-500);
}

.wide-content p {
  margin-bottom: 16px;
  color: var(--mist-600);
}

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

.category-tile,
.category-panel a {
  display: block;
  min-height: 184px;
  padding: 24px;
}

.category-tile h3,
.category-panel h2 {
  color: var(--mist-900);
}

.category-tile p,
.category-panel p {
  color: var(--mist-600);
}

.tile-kicker,
.panel-link {
  color: var(--forest-600);
  font-size: 13px;
  font-weight: 900;
}

.page-hero {
  padding: 82px 0 54px;
  background: var(--white);
}

.soft-hero,
.category-hero {
  background: linear-gradient(135deg, var(--forest-50), var(--stream-50));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--mist-500);
  font-size: 14px;
  font-weight: 800;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  background: var(--mist-50);
  border: 1px solid var(--mist-200);
  border-radius: var(--radius-lg);
}

.search-box {
  display: grid;
  gap: 6px;
  color: var(--mist-600);
  font-weight: 900;
}

.search-box input,
.filter-select {
  min-height: 46px;
  color: var(--mist-900);
  background: var(--white);
  border: 1px solid var(--mist-200);
  border-radius: 999px;
  outline: none;
}

.search-box input {
  width: 100%;
  padding: 0 18px;
}

.filter-select {
  padding: 0 18px;
}

.search-box input:focus,
.filter-select:focus {
  border-color: var(--forest-500);
  box-shadow: 0 0 0 4px rgba(77, 136, 98, 0.12);
}

.filter-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.detail-top {
  padding: 34px 0 0;
  background: linear-gradient(135deg, #101923, #1f352c 52%, #0b4d72);
}

.detail-top .breadcrumb {
  color: rgba(255, 255, 255, 0.72);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: stretch;
  padding-bottom: 34px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #05070a;
  border-color: rgba(255, 255, 255, 0.16);
}

.video-player {
  width: 100%;
  height: 100%;
  background: #05070a;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 28px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.play-button:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translate(-50%, -50%) scale(1.04);
}

.player-shell.playing .play-button {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--forest-700);
  background: var(--white);
  border-radius: 999px;
}

.detail-aside {
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 16px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.detail-meta span {
  padding: 9px 10px;
  color: var(--mist-700);
  background: var(--mist-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

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

.article-card,
.side-card {
  padding: 30px;
}

.article-card h1 {
  color: var(--mist-900);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

.lead {
  color: var(--mist-600);
  font-size: 20px;
}

.detail-tags {
  margin: 22px 0 30px;
}

.article-card h2,
.side-card h2 {
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: 26px;
}

.article-card p {
  color: var(--mist-700);
  font-size: 17px;
}

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

.side-links a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--mist-200);
  color: var(--mist-700);
  font-weight: 800;
}

.side-links a:hover {
  color: var(--forest-600);
}

.side-links em {
  color: var(--mist-500);
  font-style: normal;
}

.site-footer {
  color: var(--mist-300);
  background: var(--mist-900);
}

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

.footer-brand {
  color: var(--white);
  margin-bottom: 16px;
}

.site-footer p {
  color: var(--mist-300);
}

.site-footer h3 {
  color: var(--white);
  font-size: 18px;
}

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

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

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

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

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

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

  .detail-aside {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: center;
  }

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero-stage,
  .hero-image {
    min-height: 72vh;
  }

  .hero-content {
    padding-bottom: 96px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-thumb-row {
    grid-template-columns: 1fr 1fr;
    margin-top: -60px;
  }

  .section-head.split,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .section-head.split {
    align-items: flex-start;
  }

  .filter-actions {
    flex-wrap: wrap;
  }

  .wide-card {
    grid-template-columns: 1fr;
  }

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

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

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

  .brand-text {
    font-size: 18px;
  }

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

  .hero-thumb-row,
  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .category-panels {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .page-hero {
    padding: 56px 0 38px;
  }

  .article-card,
  .side-card {
    padding: 22px;
  }

  .detail-aside {
    display: block;
  }

  .detail-meta {
    grid-template-columns: repeat(2, 1fr);
  }
}
