:root {
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --cyan-600: #0891b2;
  --cyan-500: #06b6d4;
  --amber-500: #f59e0b;
  --rose-500: #f43f5e;
  --purple-600: #9333ea;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.14);
  --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 44%, #f8fafc 100%);
  color: var(--gray-900);
}

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--teal-700), var(--cyan-600));
  box-shadow: 0 10px 25px rgba(15, 118, 110, 0.26);
}

.nav-wrap {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  transition: opacity 0.25s ease;
}

.brand:hover {
  opacity: 0.86;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--slate-900);
  background: var(--amber-500);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
  font-size: 18px;
}

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

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: #ccfbf1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 650;
}

.main-nav a {
  color: #ecfeff;
  transition: color 0.25s ease;
}

.main-nav a:hover {
  color: #fde68a;
}

.nav-search {
  display: flex;
  align-items: center;
  min-width: 260px;
}

.nav-search input,
.filter-panel input,
.filter-panel select {
  appearance: none;
  border: 0;
  outline: none;
  font: inherit;
}

.nav-search input {
  width: 100%;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px 0 0 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.25s ease;
}

.nav-search input::placeholder {
  color: #ccfbf1;
}

.nav-search input:focus {
  background: rgba(255, 255, 255, 0.3);
}

.nav-search button {
  height: 36px;
  width: 46px;
  border: 0;
  border-radius: 0 999px 999px 0;
  cursor: pointer;
  color: var(--white);
  background: var(--amber-500);
  font-size: 17px;
  transition: background 0.25s ease;
}

.nav-search button:hover {
  background: #d97706;
}

.mobile-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  font-size: 22px;
}

.mobile-panel {
  display: none;
  padding: 0 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: #ecfeff;
  font-weight: 700;
}

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

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.hero-slide.is-active .hero-bg {
  transform: scale(1.0);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.26), rgba(15, 23, 42, 0.82)), linear-gradient(90deg, rgba(15, 118, 110, 0.62), rgba(8, 145, 178, 0.08) 58%, rgba(0, 0, 0, 0.48));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 24px 82px;
  display: flex;
  align-items: flex-end;
}

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

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.badge,
.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.badge-amber {
  background: var(--amber-500);
}

.badge-teal {
  background: var(--teal-600);
}

.badge-glass,
.meta-badge {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.hero-meta {
  margin: 0 0 10px;
  color: #e0f2fe;
  font-size: 18px;
  font-weight: 650;
}

.hero-desc {
  max-width: 680px;
  margin: 0 0 28px;
  color: #d1d5db;
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  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: var(--teal-600);
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.35);
}

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

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

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

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

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

.section,
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section-tight {
  padding-top: 34px;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 900;
}

.section-title small {
  display: block;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 600;
}

.view-more {
  color: var(--teal-600);
  font-weight: 800;
}

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

.movie-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.18);
}

.movie-card a {
  display: block;
}

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76));
  transition: opacity 0.3s ease;
}

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

.play-pill {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.play-pill span {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--teal-600);
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.38);
}

.card-label,
.card-type,
.card-year {
  position: absolute;
  z-index: 3;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.card-label {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--teal-600);
}

.card-type {
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--amber-500);
}

.card-year {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9));
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 9px;
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
  transition: color 0.25s ease;
}

.movie-card:hover .card-title {
  color: var(--teal-600);
}

.card-desc {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.category-tile {
  min-height: 132px;
  padding: 24px;
  border-radius: 20px;
  color: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.tile-blue {
  background: linear-gradient(135deg, #3b82f6, #0e7490);
}

.tile-teal {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
}

.tile-pink {
  background: linear-gradient(135deg, #ec4899, #be185d);
}

.tile-purple {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.tile-rose {
  background: linear-gradient(135deg, #f43f5e, #be123c);
}

.tile-amber {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.tile-cyan {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
}

.tile-slate {
  background: linear-gradient(135deg, #334155, #0f172a);
}

.category-icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.category-name {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 900;
}

.category-intro {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.65;
}

.gradient-block {
  border-radius: 28px;
  padding: 34px;
  background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

.gradient-block.purple {
  background: linear-gradient(90deg, #faf5ff, #fdf2f8);
}

.gradient-block.rose {
  background: linear-gradient(90deg, #fff1f2, #fffbeb);
}

.page-hero {
  background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.25), transparent 32%), linear-gradient(135deg, #0f766e, #0891b2 58%, #0f172a);
  color: var(--white);
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #ccfbf1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fde68a;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.12;
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #e0f2fe;
  font-size: 17px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) repeat(3, minmax(140px, 180px));
  gap: 14px;
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
}

.filter-panel input:focus,
.filter-panel select:focus {
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 18px;
  color: var(--gray-600);
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 82px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.rank-num {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--rose-500);
  font-weight: 900;
}

.rank-poster {
  width: 82px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: var(--slate-900);
}

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

.rank-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
}

.rank-meta {
  margin: 0;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.6;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow-soft);
}

.video-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  color: var(--white);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.88));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-cover img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.play-cover strong {
  max-width: 76%;
  text-align: center;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.25;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.56);
}

.play-circle {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--teal-600);
  box-shadow: 0 16px 32px rgba(13, 148, 136, 0.38);
  font-size: 32px;
}

.detail-card {
  border-radius: 24px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-card h2,
.article-block h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 900;
}

.detail-cover {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  margin-bottom: 18px;
  background: var(--slate-900);
}

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

.meta-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--gray-700);
  font-size: 15px;
}

.meta-list strong {
  color: var(--gray-900);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-cloud span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--teal-700);
  background: #ccfbf1;
  font-size: 13px;
  font-weight: 700;
}

.article-block {
  margin-top: 28px;
  border-radius: 24px;
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.article-block p {
  margin: 0 0 18px;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.9;
}

.article-block p:last-child {
  margin-bottom: 0;
}

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

.site-footer {
  margin-top: 54px;
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

.footer-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
  gap: 28px;
}

.footer-title {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
}

.footer-wrap p,
.footer-wrap li {
  color: #94a3b8;
  line-height: 1.8;
}

.footer-wrap ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-wrap a:hover {
  color: var(--cyan-500);
}

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 34px;
  color: #64748b;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

@media (max-width: 1024px) {
  .main-nav,
  .nav-search {
    display: none;
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

  .mobile-panel.is-open {
    display: block;
  }


  .mobile-panel .nav-search {
    display: flex;
    min-width: 0;
    margin-top: 10px;
  }

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

  .detail-card {
    order: -1;
  }

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

@media (max-width: 720px) {
  .nav-wrap {
    padding: 0 16px;
  }

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

  .brand-subtitle {
    font-size: 11px;
  }

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

  .hero-content {
    padding: 90px 18px 74px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .section,
  .page-main {
    padding: 38px 18px;
  }

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

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

  .card-body {
    padding: 12px;
  }

  .card-title {
    font-size: 15px;
  }

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

  .rank-list {
    grid-template-columns: 1fr;
  }

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