:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #0891b2;
  --orange: #f97316;
  --red: #ef4444;
  --green: #10b981;
  --teal: #0d9488;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

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

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

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

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.brand-icon span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #dbeafe;
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-button {
  border: 0;
  background: transparent;
}

.dropdown-menu {
  position: absolute;
  top: 42px;
  left: 0;
  display: none;
  min-width: 170px;
  padding: 8px;
  color: var(--gray-900);
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.nav-dropdown:hover .dropdown-menu {
  display: grid;
}

.dropdown-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--gray-700);
}

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

.header-search {
  position: relative;
  flex: 1;
  max-width: 410px;
  margin-left: auto;
}

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

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(219, 234, 254, 0.95);
}

.header-search input:focus,
.mobile-search input:focus {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.36);
}

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

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 11px;
  cursor: pointer;
}

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

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

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-search button {
  color: var(--blue);
  border: 0;
  border-radius: 999px;
  background: var(--white);
  padding: 0 16px;
  cursor: pointer;
}

.mobile-links {
  display: grid;
  gap: 4px;
}

.mobile-links a {
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.mobile-links a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(180deg, #111827, #1f2937);
}

.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-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 68px;
  transform: translateX(-50%);
  color: var(--white);
}

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

.hero-content h2 {
  max-width: 760px;
  margin: 18px 0 14px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 26px;
  color: #e5e7eb;
  font-size: 19px;
}

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

.primary-button,
.ghost-button,
.white-button,
.side-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: var(--blue);
  padding: 13px 22px;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.primary-button:hover,
.white-button:hover,
.side-more:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  padding: 12px 21px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.play-dot {
  font-size: 14px;
}

.hero-dots {
  position: absolute;
  right: 34px;
  bottom: 34px;
  display: flex;
  gap: 8px;
}

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

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

.section {
  padding: 58px 0;
}

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

.section-head h1,
.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
}

.section-head a {
  color: var(--blue);
  font-weight: 800;
}

.light-head,
.light-head a {
  color: var(--white);
}

.light-head .section-kicker {
  background: rgba(255, 255, 255, 0.2);
}

.band-hot {
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.band-green {
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--teal));
}

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

.soft-section {
  background: var(--gray-100);
}

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

.scroll-actions button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

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

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

.horizontal-strip .movie-card {
  flex: 0 0 294px;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-link {
  display: block;
  height: 100%;
}

.card-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

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

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

.card-body {
  padding: 16px;
}

.card-meta,
.detail-badges,
.card-foot,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.card-meta span,
.detail-badges span,
.detail-badges a {
  display: inline-flex;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}

.card-meta span + span,
.detail-badges span {
  color: var(--gray-600);
  background: var(--gray-100);
}

.card-body h2,
.card-body h3 {
  display: -webkit-box;
  min-height: 1.4em;
  margin: 11px 0 7px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-body p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-foot {
  justify-content: space-between;
  color: var(--gray-500);
  font-size: 12px;
}

.compact-body {
  padding: 12px;
}

.compact-body h3 {
  font-size: 15px;
}

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

.movie-card-list .wide-cover {
  aspect-ratio: auto;
  height: 100%;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-link {
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-700);
  padding: 11px 18px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pill-link:hover {
  color: var(--white);
  background: var(--blue);
  transform: translateY(-2px);
}

.center-panel {
  text-align: center;
}

.center-panel h2 {
  margin: 12px 0;
  font-size: clamp(28px, 4vw, 42px);
}

.center-panel p {
  max-width: 720px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.big-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.white-button {
  color: var(--blue);
  background: var(--white);
  padding: 13px 28px;
}

.page-hero {
  color: var(--white);
  padding: 56px 0;
}

.blue-hero {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.green-hero {
  background: linear-gradient(90deg, var(--green), var(--teal));
}

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.detail-main .breadcrumb {
  margin-bottom: 16px;
  color: var(--gray-500);
}

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

.category-card {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card {
  padding: 24px;
}

.category-card h2 a,
.category-entry {
  display: inline-flex;
}

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

.category-card p {
  margin: 0 0 16px;
  color: var(--gray-600);
}

.category-sample {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.category-sample a {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 13px;
}

.category-entry {
  color: var(--blue);
  font-weight: 800;
}

.movie-grid.list-mode {
  grid-template-columns: 1fr !important;
}

.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.tool-search {
  flex: 1 1 260px;
}

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

.catalog-tools select {
  width: auto;
}

.view-buttons {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
}

.view-buttons button {
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding: 7px 12px;
  color: var(--gray-600);
  cursor: pointer;
}

.view-buttons button.is-active {
  color: var(--white);
  background: var(--blue);
}

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

.rank-item a {
  display: grid;
  grid-template-columns: 52px 112px 1fr auto;
  align-items: center;
  gap: 16px;
  border-radius: 18px;
  background: var(--white);
  padding: 12px 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
}

.rank-item img {
  width: 112px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  font-size: 17px;
  line-height: 1.3;
}

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

.rank-more {
  color: var(--blue);
  font-weight: 800;
}

.search-panel {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--white);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.search-panel button {
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: var(--blue);
  padding: 0 24px;
  font-weight: 800;
  cursor: pointer;
}

.search-tools {
  justify-content: flex-end;
}

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

.detail-shell {
  padding: 32px 0 58px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 28px;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), rgba(0, 0, 0, 0.38));
  cursor: pointer;
}

.player-cover.is-hidden {
  display: none;
}

.player-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  padding-left: 6px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.4);
  font-size: 40px;
}

.detail-card,
.side-card {
  margin-top: 22px;
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.detail-card h1 {
  margin: 14px 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.lead {
  margin: 0 0 18px;
  color: var(--gray-600);
  font-size: 18px;
}

.detail-meta {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-weight: 700;
}

.prose-block,
.tag-block,
.related-links-block {
  margin-top: 22px;
}

.prose-block h2,
.tag-block h2,
.related-links-block h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.prose-block p {
  margin: 0;
  color: var(--gray-700);
  white-space: pre-line;
}

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

.tag {
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.related-links-block ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-links-block a {
  color: var(--blue);
  font-weight: 700;
}

.detail-side {
  min-width: 0;
}

.side-card {
  position: sticky;
  top: 86px;
}

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

.side-more {
  width: 100%;
  margin-top: 18px;
  color: var(--white);
  background: var(--blue);
  padding: 12px 16px;
}

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

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

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

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

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

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

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

.site-footer a:hover {
  color: #60a5fa;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

[hidden],
.movie-card[hidden],
.rank-item[hidden] {
  display: none !important;
}

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

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

  .side-card {
    position: static;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
  }

  .hero {
    height: 520px;
  }

  .hero-content {
    bottom: 48px;
  }

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

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

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

  .rank-item a {
    grid-template-columns: 42px 84px 1fr;
  }

  .rank-more {
    display: none;
  }

  .rank-item img {
    width: 84px;
    height: 56px;
  }
}

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

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

  .hero {
    height: 480px;
  }

  .hero-dots {
    right: 20px;
    bottom: 20px;
  }

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

  .section {
    padding: 42px 0;
  }

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

  .three-grid,
  .four-grid,
  .five-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-strip .movie-card {
    flex-basis: 260px;
  }

  .catalog-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-tools select {
    width: 100%;
  }

  .related-links-block ul {
    grid-template-columns: 1fr;
  }

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

  .rank-item img {
    display: none;
  }
}
