:root {
  --site-bg: #f9fafb;
  --site-surface: #ffffff;
  --site-ink: #111827;
  --site-muted: #6b7280;
  --site-line: #e5e7eb;
  --site-soft: #f3f4f6;
  --site-dark: #111827;
  --site-dark-2: #1f2937;
  --site-accent: #e11d48;
  --site-radius: 18px;
  --site-shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--site-ink);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 55%, #f3f4f6 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 231, 235, 0.75);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, #111827, #4b5563);
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.20);
}

.logo-title {
  display: block;
  color: #1f2937;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.logo-subtitle {
  display: block;
  color: #6b7280;
  font-size: 12px;
  margin-top: 2px;
}

.header-search {
  flex: 1;
  max-width: 430px;
}

.header-search input,
.search-panel input {
  width: 100%;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(249, 250, 251, 0.78);
  outline: none;
  color: #111827;
}

.header-search input:focus,
.search-panel input:focus {
  border-color: #9ca3af;
  box-shadow: 0 0 0 4px rgba(156, 163, 175, 0.18);
}

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

.site-nav a {
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #111827;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
}

.mobile-menu {
  display: none;
  border-top: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.96);
  padding: 12px 24px 20px;
}

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

.mobile-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 600;
}

.mobile-menu a:hover {
  background: #f3f4f6;
  color: #111827;
}

.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(31, 41, 55, 0.76), rgba(17, 24, 39, 0.20));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 680px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

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

.hero p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-meta span,
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.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: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.btn-primary:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-dark {
  background: #111827;
  color: #ffffff;
}

.btn-dark:hover {
  background: #1f2937;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

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

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

.page-hero {
  background: linear-gradient(90deg, #111827, #1f2937);
  color: #ffffff;
  padding: 56px 0;
}

.page-hero .container {
  max-width: 980px;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #d1d5db;
  font-size: 17px;
  line-height: 1.75;
}

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

.section {
  padding: 64px 0;
}

.section-soft {
  background: linear-gradient(180deg, #f9fafb, #ffffff);
}

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

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 8px 0 0;
  color: #6b7280;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: var(--site-radius);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: #d1d5db;
  box-shadow: var(--site-shadow);
}

.card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #e5e7eb, #f9fafb);
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

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

.card-badge,
.score-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(8px);
}

.score-badge {
  left: auto;
  right: 12px;
  background: rgba(225, 29, 72, 0.88);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
}

.card-body p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.65;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 0;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.category-card {
  display: block;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: #d1d5db;
  box-shadow: var(--site-shadow);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #111827;
}

.category-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 82px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
}

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

.rank-cover {
  width: 82px;
  height: 112px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f4f6;
}

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

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-info p {
  margin: 0;
  color: #6b7280;
  line-height: 1.65;
}

.rank-score {
  color: #e11d48;
  font-weight: 900;
  font-size: 20px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.filter-button {
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.search-panel {
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--site-shadow);
  margin-bottom: 28px;
}

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

.player-shell {
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.24);
}

.video-wrap {
  position: relative;
  background: #000000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.50));
  cursor: pointer;
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-button {
  width: 86px;
  height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.play-button span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #111827;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #ffffff;
  font-size: 14px;
  background: rgba(17, 24, 39, 0.72);
  border-radius: 999px;
  padding: 7px 12px;
}

.player-message:empty {
  display: none;
}

.detail-card {
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #ffffff;
  padding: 26px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.detail-card h2,
.sidebar-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.detail-card p {
  color: #4b5563;
  line-height: 1.9;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.info-list div {
  display: flex;
  gap: 10px;
  color: #4b5563;
}

.info-list strong {
  color: #111827;
  min-width: 54px;
}

.sidebar-card {
  position: sticky;
  top: 88px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #ffffff;
  padding: 18px;
}

.side-movie {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.side-movie:last-child {
  border-bottom: 0;
}

.side-movie img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: #f3f4f6;
}

.side-movie h3 {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.35;
}

.side-movie p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
}

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

.breadcrumb a:hover {
  color: #111827;
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}

.site-footer p {
  color: #6b7280;
  line-height: 1.75;
}

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

.footer-links a {
  color: #4b5563;
}

.footer-links a:hover {
  color: #111827;
}

.hide-card {
  display: none !important;
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    height: 560px;
  }

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

  .sidebar-card {
    position: static;
  }

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

@media (max-width: 640px) {
  .header-inner,
  .container,
  .hero-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .logo-title {
    font-size: 18px;
  }

  .hero {
    height: 600px;
  }

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

  .section {
    padding: 44px 0;
  }

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

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

  .card-body {
    padding: 12px;
  }

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

  .rank-score {
    grid-column: 3;
    justify-self: start;
    font-size: 16px;
  }

  .rank-cover {
    width: 64px;
    height: 88px;
  }
}
