:root {
  --site-bg: #f8f9fa;
  --site-card: #ffffff;
  --site-text: #111827;
  --site-muted: #667085;
  --site-primary: #0073e6;
  --site-primary-dark: #005bb8;
  --site-accent: #e67300;
  --site-border: #e5e7eb;
  --site-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --site-radius: 18px;
}

body {
  background: var(--site-bg);
  color: var(--site-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--site-text);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
  box-shadow: 0 10px 20px rgba(0, 115, 230, 0.25);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 650;
}

.desktop-nav a,
.mobile-panel a,
.footer-links a,
.text-link,
.section-more {
  color: inherit;
  text-decoration: none;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.footer-links a:hover,
.text-link:hover,
.section-more:hover {
  color: var(--site-primary);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--site-text);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 0 24px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--site-border);
}

.mobile-panel a {
  display: block;
  padding: 12px 0;
  font-weight: 650;
}

.hero-carousel {
  position: relative;
  min-height: 720px;
  padding-top: 72px;
  overflow: hidden;
  background: #0d0f12;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.92) 0%, rgba(8, 10, 14, 0.65) 40%, rgba(8, 10, 14, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 10, 14, 0.72) 0%, rgba(8, 10, 14, 0) 40%);
}

.hero-content {
  position: absolute;
  inset: 72px 0 0;
  display: flex;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dbeafe;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 16px 0;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.84);
}

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

.btn-primary,
.btn-ghost,
.btn-small,
.hero-search-card button,
.search-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary,
.hero-search-card button,
.search-panel button {
  background: var(--site-primary);
  color: #ffffff;
  border: 1px solid var(--site-primary);
}

.btn-primary:hover,
.hero-search-card button:hover,
.search-panel button:hover {
  background: var(--site-primary-dark);
  color: #ffffff;
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 12px 22px;
}

.btn-primary {
  padding: 12px 22px;
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 42px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

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

.hero-search-card {
  width: min(520px, 100%);
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--site-shadow);
  backdrop-filter: blur(18px);
}

.hero-search-card form,
.search-panel,
.library-search {
  display: flex;
  gap: 10px;
}

.hero-search-card input,
.search-panel input,
.library-search input {
  width: 100%;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--site-text);
}

.hero-search-card button,
.search-panel button {
  padding: 0 20px;
  white-space: nowrap;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.quick-links a {
  color: var(--site-muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.content-section {
  padding: 54px 0;
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.75;
}

.section-more {
  color: var(--site-primary);
  font-weight: 750;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--site-radius);
  background: var(--site-card);
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0d0f12;
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

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

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

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #005bb8;
  background: #e6f2ff;
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3,
.ranking-copy h2,
.category-overview-card h2 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
}

.movie-card h3 a,
.ranking-copy h2 a,
.category-overview-card h2 a {
  color: inherit;
  text-decoration: none;
}

.movie-card p,
.ranking-copy p,
.category-overview-card p,
.about-content p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--site-primary);
  font-weight: 750;
}

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

.rank-item {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: var(--site-radius);
  color: #ffffff;
  background: #111827;
  text-decoration: none;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.rank-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  transition: transform 0.35s ease;
}

.rank-item:hover img {
  transform: scale(1.06);
}

.rank-item span,
.rank-item strong,
.rank-item small {
  position: relative;
  z-index: 1;
}

.rank-item span {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 24px;
  font-weight: 900;
}

.rank-item strong {
  font-size: 17px;
  line-height: 1.35;
}

.rank-item small {
  color: rgba(255, 255, 255, 0.78);
}

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

.category-card,
.category-overview-card {
  display: block;
  padding: 22px;
  border-radius: var(--site-radius);
  background: linear-gradient(135deg, #ffffff, #eef6ff);
  border: 1px solid rgba(229, 231, 235, 0.95);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.category-card span {
  display: block;
  color: var(--site-primary);
  font-weight: 850;
}

.category-card strong {
  display: block;
  margin: 8px 0;
  font-size: 34px;
  line-height: 1;
}

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

.category-overview-card {
  padding: 0;
  overflow: hidden;
}

.category-overview-card > div {
  padding: 18px;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #111827;
}

.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-card span {
  display: inline-flex;
  margin-top: 12px;
  color: var(--site-primary);
  font-weight: 800;
}

.page-hero {
  padding: 150px 0 76px;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 10%, rgba(0, 115, 230, 0.42), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(230, 115, 0, 0.32), transparent 30%),
    linear-gradient(135deg, #0d0f12, #1f2937);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.library-search {
  max-width: 720px;
  margin-top: 28px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-row button {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 13px;
  cursor: pointer;
  font-weight: 700;
}

.filter-row button.active {
  color: var(--site-primary);
  background: #ffffff;
}

.library-item.is-hidden {
  display: none;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 74px 90px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: var(--site-radius);
  background: #ffffff;
  border: 1px solid var(--site-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.ranking-num {
  color: var(--site-primary);
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
}

.ranking-cover {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 4;
}

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

.ranking-copy h2 {
  margin-top: 0;
}

.btn-small {
  color: #ffffff;
  background: var(--site-primary);
  padding: 10px 16px;
}

.detail-top {
  padding-top: 104px;
  background: #0d0f12;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.76);
  padding-bottom: 18px;
  font-size: 14px;
}

.breadcrumb a {
  color: #ffffff;
  text-decoration: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding-top: 30px;
  padding-bottom: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #0d0f12;
  box-shadow: var(--site-shadow);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #0d0f12;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(13, 15, 18, 0.72), rgba(13, 15, 18, 0.24));
  cursor: pointer;
  text-align: center;
  padding: 24px;
}

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

.play-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 22px;
  border-left: 22px solid var(--site-primary);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

.detail-article {
  margin-top: 24px;
  padding: 26px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--site-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.detail-article h1 {
  margin: 16px 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-article h2,
.info-card h2,
.about-content h2 {
  margin: 28px 0 12px;
  font-size: 22px;
  font-weight: 850;
}

.detail-article p {
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

.detail-article .lead {
  font-size: 18px;
  color: #1f2937;
}

.detail-cover,
.info-card {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.info-card {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--site-border);
}

.info-card dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px 12px;
  margin: 0 0 20px;
}

.info-card dt {
  color: var(--site-muted);
}

.info-card dd {
  margin: 0;
  color: var(--site-text);
  font-weight: 700;
}

.block-btn {
  width: 100%;
}

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

.compact-card .movie-card-body p {
  display: none;
}

.search-panel {
  max-width: 760px;
  margin-top: 26px;
}

.search-status {
  margin-bottom: 24px;
  color: var(--site-muted);
  font-weight: 700;
}

.about-content {
  max-width: 920px;
}

.site-footer {
  margin-top: 40px;
  padding: 56px 0 24px;
  color: rgba(255, 255, 255, 0.78);
  background: #0d0f12;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 42px;
}

.footer-brand {
  color: #ffffff;
  font-size: 24px;
}

.site-footer h2 {
  color: #ffffff;
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 850;
}

.site-footer p {
  max-width: 430px;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

.footer-bottom {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 14px;
}

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

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

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

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

  .mobile-toggle {
    display: flex;
  }

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

  .hero-carousel {
    min-height: 680px;
  }

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

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

  .detail-aside {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: start;
  }

  .info-card {
    margin-top: 0;
  }

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

  .ranking-row {
    grid-template-columns: 52px 76px 1fr;
  }

  .ranking-row .btn-small {
    grid-column: 3;
    width: max-content;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    height: 64px;
  }

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

  .hero-carousel {
    min-height: 700px;
    padding-top: 64px;
  }

  .hero-content {
    inset: 64px 0 0;
  }

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

  .hero-search-card form,
  .search-panel,
  .library-search {
    flex-direction: column;
  }

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

  .movie-grid,
  .wide-grid,
  .related-grid,
  .rank-strip,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-card p,
  .text-link {
    display: none;
  }

  .page-hero {
    padding: 122px 0 56px;
  }

  .ranking-row {
    grid-template-columns: 42px 64px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .ranking-num {
    font-size: 18px;
  }

  .ranking-copy p,
  .ranking-copy .tag-row {
    display: none;
  }

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

  .detail-cover {
    max-width: 260px;
  }

  .detail-article {
    padding: 18px;
  }

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