
:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --deep: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 36%, #f8fafc 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.brand-text {
  font-size: 22px;
  line-height: 1;
  color: transparent;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: #334155;
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  border: 0;
  color: #334155;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

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

.mobile-panel .nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
}

.page {
  padding: 30px 0 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-carousel {
  position: relative;
  height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0f172a;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.6s ease, transform 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-copy {
  max-width: 720px;
  padding: 56px 72px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 16px;
  padding: 7px 12px;
  color: #ffffff;
  font-size: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

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

.hero-copy p,
.page-hero p,
.detail-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.secondary-btn,
.home-search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  color: #ffffff;
  font-weight: 750;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover,
.home-search-form button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.secondary-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #ffffff;
  font-size: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.42);
}

.hero-arrow.prev {
  left: 20px;
}

.hero-arrow.next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 32px;
  background: #ffffff;
}

.home-search-card,
.category-browser,
.ranking-preview,
.content-card,
.related-card,
.filter-panel,
.category-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.home-search-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0 54px;
  padding: 26px;
}

.home-search-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.home-search-card p {
  margin: 0;
  color: var(--muted);
}

.home-search-form {
  display: flex;
  width: min(520px, 100%);
  gap: 12px;
}

.home-search-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #ffffff;
  outline: none;
  padding: 0 14px;
}

.home-search-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.section-block,
.category-strip {
  margin-bottom: 58px;
}

.section-heading,
.section-heading > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
  color: #0f172a;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.section-heading h3 {
  font-size: 22px;
}

.section-heading span:not(.line-mark) {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), rgba(37, 99, 235, 0));
}

.section-heading.cyan span {
  background: linear-gradient(90deg, var(--cyan), rgba(6, 182, 212, 0));
}

.section-heading a {
  color: var(--blue);
  font-weight: 700;
}

.section-heading.slim {
  margin-bottom: 18px;
}

.line-mark {
  display: inline-block;
  width: 5px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
}

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

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

.small-grid {
  gap: 18px;
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.16);
}

.poster-frame,
.detail-poster,
.rank-cover,
.mini-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.36), transparent 36%),
    linear-gradient(135deg, #1e293b, #0f172a 65%, #083344);
}

.poster-frame {
  height: 260px;
}

.large-card .poster-frame {
  height: 360px;
}

.poster-frame img,
.detail-poster img,
.rank-cover img,
.mini-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.48s ease;
}

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

.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 20px;
  color: #ffffff;
  background: linear-gradient(180deg, transparent 15%, rgba(15, 23, 42, 0.82));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-dot {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  align-self: center;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
}

.poster-text {
  font-size: 14px;
  line-height: 1.65;
}

.corner-label,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 12px;
  right: auto;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.card-body {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.card-body strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.movie-card:hover .card-body strong {
  color: var(--blue);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: #2563eb;
  font-size: 12px;
  border-radius: 999px;
  background: #eff6ff;
}

.category-browser {
  margin-bottom: 58px;
  padding: 34px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.category-browser > h2 {
  margin: 0 0 30px;
  text-align: center;
  font-size: 32px;
}

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

.mini-movie {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mini-movie:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.mini-poster {
  width: 96px;
  height: 64px;
  border-radius: 12px;
}

.mini-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.mini-info strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-info span {
  color: var(--muted);
  font-size: 13px;
}

.mini-rank {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 46px;
  color: #ffffff;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.32), transparent 34%),
    linear-gradient(135deg, #0f172a, #1d4ed8 56%, #0891b2);
  box-shadow: var(--shadow);
}

.compact-hero {
  min-height: 260px;
}

.category-hero {
  min-height: 280px;
}

.page-hero h1 {
  max-width: 760px;
}

.page-hero p {
  max-width: 760px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

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

.category-card {
  display: grid;
  gap: 16px;
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
}

.category-card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.category-card-top strong {
  font-size: 24px;
}

.category-card-top span {
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a {
  color: var(--blue);
  font-size: 13px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eff6ff;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 128px 1fr 72px;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.rank-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.rank-cover {
  width: 128px;
  height: 82px;
  border-radius: 14px;
}

.rank-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rank-main strong {
  color: #0f172a;
  font-size: 18px;
}

.rank-main em {
  overflow: hidden;
  color: #475569;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-main span,
.rank-score {
  color: var(--muted);
  font-size: 13px;
}

.rank-score {
  color: var(--blue);
  font-size: 18px;
  font-weight: 850;
  text-align: center;
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  height: 420px;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.detail-copy p {
  color: rgba(255, 255, 255, 0.88);
}

.detail-tags {
  margin: 0 0 24px;
}

.detail-tags .tag {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.player-section {
  margin: 0 0 30px;
}

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

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--blue);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.64));
  cursor: pointer;
}

.player-start span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
  font-size: 32px;
}

.player-box.is-playing .player-start {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 28px;
  align-items: start;
}

.detail-article {
  display: grid;
  gap: 24px;
}

.content-card,
.related-card {
  padding: 26px;
}

.content-card h2,
.related-card h2 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 22px;
}

.content-card p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.95;
}

.related-card {
  position: sticky;
  top: 92px;
}

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

.site-footer {
  margin-top: 72px;
  border-top: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
}

.footer-main h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.footer-main p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 26px 0;
}

.footer-links a {
  color: #475569;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #64748b;
  font-size: 13px;
  border-top: 1px solid #e2e8f0;
  padding-top: 22px;
}

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

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

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

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

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

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

  .hero-carousel {
    height: 560px;
  }

  .hero-copy {
    padding: 42px 32px;
  }

  .home-search-card,
  .home-search-form,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .feature-grid,
  .category-grid,
  .mini-list,
  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .filter-panel .search-box {
    grid-column: 1 / -1;
  }

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

  .rank-score {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-nav,
  .container,
  .footer-inner,
  .mobile-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .page {
    padding-top: 18px;
  }

  .hero-carousel {
    height: 520px;
    border-radius: 18px;
  }

  .hero-copy {
    padding: 34px 22px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .feature-grid,
  .category-grid,
  .mini-list,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .poster-frame,
  .large-card .poster-frame {
    height: 300px;
  }

  .page-hero,
  .detail-hero,
  .category-browser,
  .content-card,
  .related-card {
    padding: 24px;
    border-radius: 18px;
  }

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

  .rank-cover {
    display: none;
  }

  .detail-poster {
    width: 100%;
    max-width: none;
    height: 360px;
  }

  .mini-movie {
    grid-template-columns: 86px 1fr auto;
  }

  .mini-poster {
    width: 86px;
  }
}
