:root {
  --mist-950: #050b0f;
  --mist-900: #0b151b;
  --mist-850: #101e25;
  --mist-800: #13262d;
  --mist-700: #1c363d;
  --mist-600: #284950;
  --mist-300: #b6c9cd;
  --mist-200: #d6e5e7;
  --swamp-700: #18575b;
  --swamp-600: #247075;
  --swamp-500: #2d8285;
  --swamp-400: #50a4a7;
  --swamp-300: #7bb8ba;
  --gold: #f0b85a;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(45, 130, 133, 0.25), transparent 32rem),
    radial-gradient(circle at 92% 18%, rgba(24, 87, 91, 0.28), transparent 34rem),
    var(--mist-950);
  color: var(--mist-200);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(123, 184, 186, 0.16);
  background: rgba(11, 21, 27, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1240px, calc(100% - 28px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--swamp-500), var(--swamp-700));
  box-shadow: 0 12px 30px rgba(45, 130, 133, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  color: var(--white);
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--mist-300);
  font-size: 12px;
  margin-top: 4px;
}

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

.nav-link {
  color: var(--mist-200);
  border: 0;
  cursor: pointer;
  background: transparent;
  transition: color 0.2s ease;
}

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

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  width: 180px;
  padding: 10px;
  display: grid;
  gap: 6px;
  border-radius: 16px;
  background: rgba(19, 38, 45, 0.98);
  border: 1px solid rgba(123, 184, 186, 0.14);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 0.2s ease;
}

.dropdown-panel a {
  padding: 8px 10px;
  color: var(--mist-200);
  border-radius: 10px;
}

.dropdown-panel a:hover {
  color: var(--white);
  background: rgba(45, 130, 133, 0.22);
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-search {
  width: 260px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(123, 184, 186, 0.16);
  border-radius: 999px;
  background: rgba(19, 38, 45, 0.76);
  overflow: hidden;
}

.header-search input,
.wide-search input,
.filter-bar input,
.filter-bar select {
  color: var(--white);
  outline: none;
  border: 0;
  background: transparent;
}

.header-search input {
  min-width: 0;
  width: 100%;
  padding: 10px 12px 10px 16px;
}

.header-search button {
  padding: 10px 16px;
  border: 0;
  color: var(--white);
  cursor: pointer;
  background: var(--swamp-600);
}

.menu-button {
  display: none;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid rgba(123, 184, 186, 0.2);
  border-radius: 999px;
  color: var(--white);
  background: rgba(19, 38, 45, 0.82);
}

.hero-shell {
  width: min(1240px, calc(100% - 28px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.hero-carousel {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--mist-900);
  box-shadow: var(--shadow);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.72);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 11, 15, 0.92), rgba(5, 11, 15, 0.58), rgba(5, 11, 15, 0.28)),
    linear-gradient(0deg, rgba(5, 11, 15, 0.7), transparent 48%);
}

.hero-content {
  position: relative;
  max-width: 640px;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--swamp-300);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 16px 0 18px;
  color: var(--white);
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 600px;
  margin: 0 0 22px;
  color: var(--mist-200);
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--mist-200);
  background: rgba(214, 229, 231, 0.1);
  border: 1px solid rgba(214, 229, 231, 0.1);
}

.hero-actions,
.detail-info .primary-btn {
  margin-top: 28px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--swamp-500), var(--swamp-700));
  box-shadow: 0 16px 40px rgba(45, 130, 133, 0.32);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(45, 130, 133, 0.42);
}

.ghost-btn {
  margin-left: 12px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.hero-dots {
  position: absolute;
  left: 56px;
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dots button.is-active {
  background: var(--swamp-300);
}

.hero-aside,
.feature-panel {
  padding: 22px;
  border-radius: 26px;
  background: rgba(19, 38, 45, 0.78);
  border: 1px solid rgba(123, 184, 186, 0.14);
  box-shadow: var(--shadow);
}

.aside-title {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(11, 21, 27, 0.56);
  border: 1px solid rgba(123, 184, 186, 0.1);
  transition: 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  background: rgba(28, 54, 61, 0.7);
}

.rank-item img {
  width: 96px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: var(--mist-800);
}

.list-rank {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--swamp-500), var(--swamp-700));
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy strong {
  color: var(--white);
}

.rank-copy em {
  color: var(--mist-300);
  font-size: 13px;
  font-style: normal;
}

.search-panel {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: 24px;
  background: rgba(19, 38, 45, 0.64);
  border: 1px solid rgba(123, 184, 186, 0.12);
}

.wide-search {
  display: flex;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(5, 11, 15, 0.72);
  border: 1px solid rgba(123, 184, 186, 0.14);
}

.wide-search input {
  width: 100%;
  padding: 16px 18px;
}

.wide-search button,
.filter-bar button {
  border: 0;
  cursor: pointer;
  color: var(--white);
  padding: 0 22px;
  background: var(--swamp-600);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--mist-200);
  background: rgba(214, 229, 231, 0.08);
}

.section-block {
  margin-top: 42px;
}

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

.section-head h2 {
  margin: 4px 0 0;
  color: var(--white);
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-more {
  color: var(--swamp-300);
  font-weight: 700;
}

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

.category-tile,
.category-overview-card {
  min-height: 112px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(45, 130, 133, 0.3), rgba(19, 38, 45, 0.8)),
    var(--mist-800);
  border: 1px solid rgba(123, 184, 186, 0.14);
  transition: 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-3px);
  border-color: rgba(123, 184, 186, 0.36);
}

.category-tile span,
.category-overview-card strong {
  display: block;
  color: var(--white);
  font-size: 19px;
  font-weight: 800;
}

.category-tile em,
.category-overview-card p {
  color: var(--mist-300);
  font-style: normal;
  font-size: 14px;
}

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

.category-overview-card {
  min-height: 220px;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.category-covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: var(--mist-700);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(19, 38, 45, 0.7);
  border: 1px solid rgba(123, 184, 186, 0.12);
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 184, 186, 0.32);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--mist-800);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.play-float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 36px;
  background: rgba(5, 11, 15, 0.32);
  opacity: 0;
  transition: 0.2s ease;
}

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

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--gold), var(--swamp-600));
}

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

.movie-card h3 {
  min-height: 48px;
  margin: 0 0 8px;
  color: var(--white);
  font-size: 16px;
  line-height: 1.45;
}

.movie-card p {
  min-height: 60px;
  margin: 8px 0 12px;
  color: var(--mist-300);
  font-size: 13px;
  line-height: 1.55;
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--mist-300);
  font-size: 12px;
}

.meta-row span {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(214, 229, 231, 0.08);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
}

.feature-panel {
  align-self: start;
  padding: 34px;
}

.feature-panel h2 {
  color: var(--white);
  margin: 10px 0 12px;
  font-size: 34px;
  line-height: 1.2;
}

.feature-panel p {
  color: var(--mist-300);
}

.page-main {
  padding-top: 30px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--mist-300);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--swamp-300);
}

.compact-hero {
  padding: 44px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(45, 130, 133, 0.32), rgba(11, 21, 27, 0.74)),
    var(--mist-850);
  border: 1px solid rgba(123, 184, 186, 0.14);
  box-shadow: var(--shadow);
}

.compact-hero h1 {
  font-size: clamp(32px, 5vw, 58px);
}

.compact-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--mist-200);
  font-size: 17px;
}

.filter-bar {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(19, 38, 45, 0.74);
  border: 1px solid rgba(123, 184, 186, 0.14);
}

.filter-bar select option {
  color: #111;
}

.detail-main {
  width: min(1120px, calc(100% - 32px));
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(19, 38, 45, 0.68);
  border: 1px solid rgba(123, 184, 186, 0.14);
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: var(--mist-800);
}

.detail-info h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-one-line {
  font-size: 18px;
  color: var(--mist-200);
}

.large-tags span {
  padding: 7px 12px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  color: var(--mist-300);
}

.detail-meta span {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(214, 229, 231, 0.07);
}

.player-section {
  margin-top: 32px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  cursor: pointer;
  background: linear-gradient(0deg, rgba(5, 11, 15, 0.62), rgba(5, 11, 15, 0.2));
}

.player-start span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 28px;
  background: linear-gradient(135deg, var(--swamp-500), var(--swamp-700));
  box-shadow: 0 18px 48px rgba(45, 130, 133, 0.42);
}

.player-start strong {
  font-size: 18px;
}

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

.detail-content {
  padding: 30px;
  border-radius: 24px;
  background: rgba(19, 38, 45, 0.58);
  border: 1px solid rgba(123, 184, 186, 0.12);
}

.detail-content h2 {
  color: var(--white);
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-content h2:not(:first-child) {
  margin-top: 30px;
}

.detail-content p {
  color: var(--mist-200);
  font-size: 17px;
}

.site-footer {
  margin-top: 64px;
  padding: 38px 0 32px;
  border-top: 1px solid rgba(123, 184, 186, 0.13);
  background: rgba(5, 11, 15, 0.52);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid strong {
  color: var(--white);
  font-size: 20px;
}

.footer-grid p,
.footer-sub {
  color: var(--mist-300);
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a,
.footer-sub a {
  color: var(--swamp-300);
}

.footer-sub {
  margin-top: 18px;
  font-size: 14px;
}

[data-card].is-hidden {
  display: none;
}

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

  .hero-shell {
    grid-template-columns: 1fr;
  }

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

  .aside-title {
    grid-column: 1 / -1;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

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

  .main-nav {
    order: 3;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 0 12px;
  }

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

  .nav-link,
  .dropdown-panel a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(214, 229, 231, 0.07);
  }

  .nav-dropdown .dropdown-panel {
    position: static;
    width: 100%;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

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

  .hero-slide {
    padding: 32px 22px;
    align-items: flex-end;
  }

  .hero-dots {
    left: 22px;
  }

  .hero-aside,
  .search-panel,
  .two-column,
  .detail-hero,
  .footer-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

@media (max-width: 460px) {
  .brand-text strong {
    font-size: 18px;
  }

  .hero-shell,
  .container,
  .detail-main {
    width: min(100% - 20px, 1180px);
  }

  .category-grid,
  .category-overview-grid,
  .hero-aside {
    grid-template-columns: 1fr;
  }

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

  .compact-hero,
  .detail-hero,
  .detail-content {
    padding: 22px;
  }

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

  .rank-item img {
    width: 80px;
  }
}
