:root {
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --cyan-500: #06b6d4;
  --green-500: #10b981;
  --orange-500: #f97316;
  --red-600: #dc2626;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  color-scheme: light;
}

* {
  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: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.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-600), var(--blue-700));
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

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

.brand-icon,
.footer-brand span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 600;
  white-space: nowrap;
}

.desktop-nav a,
.nav-dropdown button {
  color: rgba(255, 255, 255, 0.94);
  background: transparent;
  border: 0;
  padding: 8px 0;
}

.desktop-nav a:hover,
.nav-dropdown button:hover {
  color: #dbeafe;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 190px;
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 14px;
  color: var(--gray-800);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-panel a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--gray-800);
}

.dropdown-panel a:hover {
  color: var(--blue-700);
  background: #eff6ff;
}

.search-form,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-form {
  flex: 1;
  max-width: 420px;
  margin-left: auto;
}

.search-form input,
.mobile-search input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.search-form input::placeholder,
.mobile-search input::placeholder {
  color: #dbeafe;
}

.search-form button,
.mobile-search button,
.big-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  color: var(--blue-700);
  background: var(--white);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
}

.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 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  height: 500px;
  min-height: 500px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--gray-950), var(--gray-800));
}

@media (min-width: 768px) {
  .hero {
    height: 600px;
  }
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 7, 18, 0.92), rgba(3, 7, 18, 0.55) 52%, rgba(3, 7, 18, 0.16));
}

.hero-content {
  position: absolute;
  inset: auto 0 0;
  padding-bottom: 64px;
}

.hero-copy {
  max-width: 760px;
  color: var(--white);
}

.hero-kicker,
.section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--white);
  background: var(--red-600);
}

.hero-copy h1 {
  margin: 16px 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  font-size: clamp(17px, 2vw, 22px);
  color: #e5e7eb;
}

.hero-tags,
.detail-tags,
.movie-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags a,
.movie-card-tags span {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--gray-700);
  background: var(--gray-100);
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  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 30px rgba(37, 99, 235, 0.28);
}

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

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

.btn-light {
  color: var(--blue-700);
  background: var(--white);
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  display: flex;
  gap: 9px;
}

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

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

.section {
  padding: 64px 0;
}

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

.section-soft {
  background: #eff6ff;
}

.section-hot {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.section-gradient {
  background: linear-gradient(135deg, var(--green-500), #0f766e);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 12px 0 8px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 0;
  max-width: 760px;
  color: var(--gray-600);
}

.section-heading.light {
  color: var(--white);
}

.section-heading.light p {
  color: rgba(255, 255, 255, 0.86);
}

.section-label.blue {
  color: var(--blue-700);
  background: #dbeafe;
}

.section-label.red {
  color: var(--red-600);
  background: #fee2e2;
}

.section-label.light-pill {
  color: var(--blue-700);
  background: var(--white);
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  color: var(--white);
}

.scroll-actions {
  display: flex;
  gap: 10px;
}

.scroll-actions button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
}

.horizontal-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

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

.horizontal-rail .movie-card {
  width: 280px;
  min-width: 280px;
}

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

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

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

.section-hot .movie-card,
.section-gradient .movie-card {
  box-shadow: 0 20px 40px rgba(3, 7, 18, 0.18);
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
}

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

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

.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
  background: rgba(220, 38, 38, 0.92);
  backdrop-filter: blur(8px);
}

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

.movie-card-title {
  display: block;
  min-height: 50px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--gray-900);
}

.movie-card-title:hover {
  color: var(--orange-500);
}

.movie-card-desc {
  display: -webkit-box;
  min-height: 45px;
  margin: 8px 0 12px;
  overflow: hidden;
  color: var(--gray-600);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--gray-500);
}

.movie-card-list {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.movie-card-list .poster-link {
  aspect-ratio: auto;
  min-height: 148px;
}

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

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

.category-tile a {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:nth-child(3n + 2) a {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.category-tile:nth-child(3n) a {
  background: linear-gradient(135deg, #059669, #0f766e);
}

.category-tile a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-name {
  font-size: 23px;
  font-weight: 900;
}

.category-tile strong {
  font-size: 15px;
}

.category-tile p,
.category-tile .mini-links {
  color: rgba(255, 255, 255, 0.84);
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.ranking-card {
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 74px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 10px;
  background: var(--gray-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: #eff6ff;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-weight: 900;
  color: var(--white);
  background: var(--blue-600);
}

.rank-item img {
  width: 74px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--gray-900);
}

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

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

.rank-content strong {
  font-size: 15px;
}

.rank-content em {
  font-size: 12px;
  font-style: normal;
  color: var(--gray-500);
}

.more-link {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 800;
  color: var(--blue-700);
}

.cta-band {
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 0;
}

.cta-inner h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 38px);
}

.cta-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.site-footer {
  color: #d1d5db;
  background: var(--gray-900);
}

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

.footer-brand {
  color: var(--white);
  font-size: 21px;
}

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

.site-footer p,
.site-footer ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

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

.keyword-cloud {
  line-height: 2;
}

.page-main {
  min-height: 60vh;
}

.page-hero,
.detail-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
}

.page-hero .container {
  padding: 58px 0;
}

.page-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
}

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

.overview-list {
  display: grid;
  gap: 40px;
}

.category-overview-block {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
}

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

.overview-head h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.overview-head p {
  margin: 0;
  color: var(--gray-600);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: var(--gray-700);
}

.filter-panel input,
.filter-panel select,
.big-search input {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 11px 12px;
  outline: 0;
  color: var(--gray-900);
  background: var(--white);
}

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

.filter-count,
.search-status {
  margin: 0 0 18px;
  color: var(--gray-600);
  font-weight: 700;
}

.big-search {
  max-width: 720px;
  margin-top: 28px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.big-search input {
  border: 0;
  border-radius: 999px;
}

.big-search button {
  min-width: 110px;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 26%), linear-gradient(135deg, var(--gray-950), var(--blue-700));
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 58px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--gray-900);
}

.detail-info h1 {
  margin: 16px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.detail-tags {
  margin-bottom: 26px;
}

.detail-tags a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.player-card {
  border-radius: 24px;
  padding: 12px;
  background: var(--gray-900);
  box-shadow: var(--shadow-lg);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
}

.site-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.center-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  font-size: 34px;
  background: var(--blue-600);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-shell.is-playing .center-play {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  pointer-events: none;
}

.video-shell:hover .center-play {
  background: var(--blue-700);
}

.detail-content-section {
  padding-top: 20px;
}

.detail-article {
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.detail-article h2 {
  margin: 0 0 12px;
  font-size: 25px;
}

.detail-article p {
  margin: 0 0 24px;
  color: var(--gray-700);
  font-size: 17px;
}

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

.detail-side h2 {
  margin: 0 0 14px;
}

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

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

  .side-column,
  .detail-side {
    width: 100%;
  }

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

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-inner {
    gap: 12px;
  }

  .hero {
    height: 560px;
  }

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

  .hero-controls {
    right: 24px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .ranking-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .detail-poster {
    max-width: 300px;
  }

  .cta-inner,
  .overview-head,
  .row-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

  .hero {
    height: 620px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .ranking-page-list,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-rail .movie-card {
    width: 245px;
    min-width: 245px;
  }

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

  .rank-item {
    grid-template-columns: 38px 64px 1fr;
  }

  .rank-item img {
    width: 64px;
    height: 48px;
  }

  .center-play {
    width: 72px;
    height: 72px;
    font-size: 27px;
  }
}
