* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: #1f2937;
  background: #f9fafb;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a, #1e293b);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.16), 0 4px 6px -4px rgba(0, 0, 0, 0.16);
}

.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #111827;
  background: #f59e0b;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.15);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1;
}

.nav-links a,
.footer-link {
  color: #e5e7eb;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.footer-link:hover {
  color: #f59e0b;
}

.search-form {
  position: relative;
  width: 220px;
}

.search-form input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: #334155;
  padding: 10px 42px 10px 16px;
  border-radius: 999px;
}

.search-form input::placeholder {
  color: #cbd5e1;
}

.search-form button {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  color: #cbd5e1;
  background: transparent;
}

.mobile-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 26px;
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

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

.mobile-panel a {
  display: block;
  padding: 10px 0;
  color: #e5e7eb;
}

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

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-copy {
  max-width: 690px;
  color: #ffffff;
  padding: 42px 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #fbbf24;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -1px;
}

.hero p {
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-primary,
.btn-secondary,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: #f59e0b;
  padding: 13px 28px;
  box-shadow: 0 18px 30px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover {
  background: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(245, 158, 11, 0.32);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 12px 22px;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
}

.btn-light {
  color: #1f2937;
  background: #ffffff;
  padding: 11px 20px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

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

.hero-tags span,
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 13px;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.46);
  border-radius: 999px;
  transform: translateY(-50%);
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.46);
  border-radius: 999px;
}

.hero-dot.is-active {
  width: 30px;
  background: #f59e0b;
}

.section {
  padding: 72px 0;
}

.section-dark {
  color: #ffffff;
  background: #1e293b;
}

.section-soft {
  background: linear-gradient(90deg, #fffbeb, #fff7ed);
}

.section-slate {
  background: linear-gradient(180deg, #0f172a, #f9fafb);
}

.section-gray {
  background: linear-gradient(90deg, #f1f5f9, #f8fafc);
}

.section-white {
  background: #ffffff;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-title-row h2,
.page-title h1,
.detail-card h1 {
  margin: 0;
}

.section-title-row h2 {
  color: #1f2937;
  font-size: 32px;
  line-height: 1.2;
}

.section-dark .section-title-row h2 {
  color: #ffffff;
}

.section-lead {
  color: #64748b;
  line-height: 1.7;
  margin: 10px 0 0;
}

.section-dark .section-lead {
  color: #cbd5e1;
}

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

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

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

.movie-grid.mosaic .movie-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.movie-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.32);
}

.movie-card .poster-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.5s ease;
}

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

.poster-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0));
}

.card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0));
}

.card-title {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 17px;
  line-height: 1.35;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #d1d5db;
  font-size: 13px;
}

.card-badge {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.18);
  padding: 3px 8px;
  border-radius: 8px;
}

.rail-wrap {
  position: relative;
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 0 14px;
  scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
  display: none;
}

.rail-item {
  flex: 0 0 300px;
}

.rail-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.2s ease;
}

.rail-wrap:hover .rail-button {
  opacity: 1;
}

.rail-left {
  left: -10px;
}

.rail-right {
  right: -10px;
}

.list-stack {
  display: grid;
  gap: 16px;
}

.list-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  overflow: hidden;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.list-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.14);
}

.list-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.list-body {
  padding: 18px 20px 18px 0;
}

.list-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.list-body p {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: #64748b;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a, #1e293b);
  padding: 72px 0;
}

.page-title {
  max-width: 820px;
}

.page-title h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
}

.page-title p {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
  margin: 18px 0 0;
}

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

.category-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  background: linear-gradient(135deg, #1e293b, #0f172a 52%, #92400e);
  padding: 26px;
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.category-card h2 {
  margin: 0 0 12px;
  font-size: 25px;
}

.category-card p {
  color: #e5e7eb;
  line-height: 1.7;
  margin: 0;
}

.category-card span {
  color: #fbbf24;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 28px;
}

.filter-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  outline: 0;
  padding: 14px 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.filter-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 130px 1fr auto;
  gap: 18px;
  align-items: center;
  background: #ffffff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.rank-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: #f59e0b;
  border-radius: 999px;
  font-weight: 900;
}

.rank-row img {
  width: 130px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-row h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.rank-row p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #64748b;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.player-section {
  background: #0f172a;
  padding: 36px 0;
}

.player-shell {
  position: relative;
  max-width: 980px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  background: #000000;
  border-radius: 18px;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.36);
}

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

.video-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.18);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.video-play {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: #f59e0b;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.32);
  font-size: 34px;
}

.video-play:hover {
  background: #d97706;
}

.video-message {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: none;
  max-width: min(640px, calc(100% - 36px));
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  padding: 10px 18px;
  transform: translateX(-50%);
}

.video-message.is-visible {
  display: block;
}

.detail-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.detail-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
  padding: 34px;
  margin-bottom: 36px;
}

.detail-card h1 {
  color: #1f2937;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  margin-bottom: 24px;
}

.info-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  color: #64748b;
}

.info-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.category-pill {
  color: #b45309;
  background: #fef3c7;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
}

.one-line {
  color: #1f2937;
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
  padding: 17px 18px;
  line-height: 1.8;
  font-size: 18px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 30px;
}

.detail-tags span {
  color: #374151;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 14px;
}

.article-block {
  border-top: 1px solid #e5e7eb;
  padding-top: 26px;
  margin-top: 26px;
}

.article-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.article-block h2 {
  color: #1f2937;
  font-size: 26px;
  margin: 0 0 14px;
}

.article-block p {
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
  margin: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  margin-bottom: 24px;
}

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

.site-footer {
  color: #d1d5db;
  background: #0f172a;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 32px;
  padding: 46px 0;
}

.footer-grid h3 {
  color: #ffffff;
  margin: 0 0 16px;
}

.footer-grid p,
.footer-grid li {
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 14px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
}

.hidden-card {
  display: none !important;
}

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

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

@media (max-width: 760px) {
  .nav-links,
  .nav-inner > .search-form {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-inner {
    gap: 10px;
  }

  .logo {
    font-size: 18px;
  }

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

  .hero-copy {
    padding: 74px 0 90px;
  }

  .hero-control {
    top: auto;
    bottom: 34px;
    transform: none;
  }

  .hero-prev {
    left: 18px;
  }

  .hero-next {
    right: 18px;
  }

  .section {
    padding: 50px 0;
  }

  .section-title-row {
    display: block;
  }

  .movie-grid,
  .movie-grid.compact,
  .movie-grid.mosaic,
  .category-cards {
    grid-template-columns: 1fr;
  }

  .movie-grid.mosaic .movie-card:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .rail-item {
    flex-basis: 82%;
  }

  .rail-button {
    opacity: 1;
  }

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

  .list-body {
    padding: 0 18px 18px;
  }

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

  .rank-row {
    grid-template-columns: 46px 96px 1fr;
  }

  .rank-row .btn-light {
    grid-column: 2 / -1;
  }

  .rank-row img {
    width: 96px;
    height: 60px;
  }

  .detail-card {
    padding: 24px;
  }

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