*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --blue-900: #0f172a;
  --blue-800: #1e3a8a;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --red-600: #dc2626;
  --orange-500: #f97316;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-soft: 0 18px 55px rgba(15, 23, 42, 0.16);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-700), var(--blue-800));
  box-shadow: 0 8px 30px rgba(30, 64, 175, 0.24);
}

.nav-bar {
  display: flex;
  align-items: center;
  min-height: 68px;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--blue-700);
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.brand-text {
  font-size: 21px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 8px;
  font-weight: 650;
}

.desktop-nav a {
  opacity: 0.94;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover {
  color: #bfdbfe;
  opacity: 1;
}

.nav-search {
  position: relative;
  display: flex;
  flex: 1;
  max-width: 390px;
  margin-left: auto;
}

.nav-search input {
  width: 100%;
  color: var(--white);
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 10px 46px 10px 18px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

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

.nav-search input:focus {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.32);
}

.nav-search button {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 28px;
  height: 28px;
  color: var(--white);
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 8px;
}

.mobile-panel a {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(180deg, var(--gray-900), var(--gray-800));
}

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

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 25%, rgba(37, 99, 235, 0.32), transparent 35%),
    linear-gradient(0deg, rgba(3, 7, 18, 0.98) 0%, rgba(3, 7, 18, 0.55) 52%, rgba(3, 7, 18, 0.22) 100%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  right: 24px;
  bottom: 68px;
  z-index: 2;
  max-width: 760px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 999px;
  background: var(--red-600);
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.35);
}

.hero h1,
.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: var(--gray-200);
  font-size: 18px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--blue-600);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.3);
}

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

.btn-light {
  color: var(--gray-900);
  background: var(--white);
}

.btn-ghost {
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--white);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hot-strip {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange-500), var(--red-600));
  padding: 34px 0;
}

.hot-strip-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: center;
}

.hot-strip h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 36px);
}

.hot-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.hot-list {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding-bottom: 4px;
}

.hot-list a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.18);
}

.page-hero,
.detail-hero {
  color: var(--white);
  padding: 64px 0 54px;
  background:
    radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.45), transparent 30%),
    linear-gradient(135deg, var(--blue-900), var(--blue-700));
}

.page-hero h1,
.detail-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.18;
}

.page-hero p,
.detail-hero p {
  max-width: 820px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.section {
  padding: 56px 0;
}

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

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

.section-title h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
}

.section-title p {
  max-width: 640px;
  margin: 6px 0 0;
  color: var(--gray-600);
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 55%);
  opacity: 0.86;
}

.play-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: var(--blue-600);
}

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

.movie-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h2 {
  margin: 8px 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-item h2 a:hover {
  color: var(--blue-700);
}

.movie-card p {
  min-height: 46px;
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 750;
  border-radius: 999px;
  background: #dbeafe;
}

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

.category-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: var(--white);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, var(--blue-700), var(--blue-900));
  box-shadow: var(--shadow-soft);
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: #dbeafe;
}

.category-card strong {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  font-size: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(130px, 180px));
  gap: 12px;
  padding: 18px;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  outline: 0;
  padding: 0 14px;
  background: #f8fafc;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.filter-empty {
  display: none;
  padding: 30px;
  text-align: center;
  color: var(--gray-600);
  border-radius: var(--radius-md);
  background: var(--white);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

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

.rank-content h2 {
  margin: 8px 0 8px;
  font-size: 20px;
}

.rank-content p {
  margin: 0 0 10px;
  color: var(--gray-600);
}

.rank-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 750;
}

.rank-number {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-600), var(--orange-500));
}

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

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

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

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: var(--gray-950);
  box-shadow: var(--shadow-soft);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--gray-950);
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--white);
  border: 0;
  background:
    linear-gradient(0deg, rgba(3, 7, 18, 0.70), rgba(3, 7, 18, 0.36));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-ring {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  font-size: 28px;
  background: var(--blue-600);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.44);
}

.detail-panel {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-panel img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-100);
}

.info-list span {
  color: var(--gray-500);
  white-space: nowrap;
}

.info-list strong {
  text-align: right;
}

.article-content {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.article-content h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

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

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

.site-footer {
  color: var(--gray-300);
  background: var(--gray-900);
  padding-top: 46px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr);
  gap: 32px;
}

.footer-brand {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 14px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: var(--gray-300);
}

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

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: #93c5fd;
}

.footer-bottom {
  margin-top: 34px;
  padding: 20px;
  text-align: center;
  color: var(--gray-500);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

  .detail-panel {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
  }

  .detail-panel img {
    margin: 0;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    height: 520px;
  }

  .hero-content {
    left: 18px;
    bottom: 72px;
  }

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

  .hero-arrow {
    display: none;
  }

  .hot-strip-inner,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .hero {
    height: 500px;
  }

  .hero-content {
    right: 18px;
  }

  .hero-label {
    margin-bottom: 12px;
  }

  .hero h1,
  .hero h2 {
    font-size: 34px;
  }

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

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

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

  .rank-item {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-cover img {
    height: 128px;
  }

  .rank-content h2 {
    font-size: 17px;
  }

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

  .detail-panel img {
    max-width: 240px;
  }

  .article-content {
    padding: 20px;
  }
}

.mini-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.mini-links a {
  display: block;
  overflow: hidden;
  max-width: 100%;
  color: #eff6ff;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
