:root {
  --page: #f8fafc;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #e5e7eb;
  --accent: #111827;
  --accent-2: #ef4444;
  --accent-3: #f59e0b;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
  --radius: 22px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #f8fafc 0%, #f3f4f6 48%, #fafaf9 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  width: 100%;
}
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 231, 235, 0.72);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #111827, #374151);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.22);
}
.brand-text {
  font-size: 20px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-size: 15px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover,
.nav-link.active {
  color: #111827;
  background: #f3f4f6;
}
.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #111827;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
}
.hero {
  padding: 34px 0 28px;
}
.hero-frame {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 34px;
  background: #111827;
  box-shadow: var(--shadow);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
}
.hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(239, 68, 68, 0.32), transparent 34%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(31, 41, 55, 0.78));
}
.hero-kicker,
.detail-kicker {
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 700;
}
.hero h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}
.hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.80);
  font-size: 18px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  color: #111827;
  background: #ffffff;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
}
.btn-dark {
  color: #ffffff;
  background: #111827;
}
.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-poster {
  position: relative;
  min-height: 520px;
}
.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #111827 0%, rgba(17, 24, 39, 0.52) 22%, rgba(17, 24, 39, 0) 56%);
}
.hero-dots {
  position: absolute;
  left: 64px;
  bottom: 34px;
  z-index: 6;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.hero-dot.active {
  width: 36px;
  background: #ffffff;
}
.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 22px auto 10px;
}
.search-box {
  position: relative;
}
.search-input {
  width: 100%;
  height: 54px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 0 18px 0 48px;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  outline: none;
  font-size: 16px;
}
.search-box::before {
  content: "⌕";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 22px;
}
.filter-pills,
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.pill:hover,
.pill.active {
  color: #ffffff;
  background: #111827;
  border-color: #111827;
}
.section {
  padding: 34px 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.13);
}
.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e5e7eb;
}
.poster-link img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.movie-card:hover img {
  transform: scale(1.06);
}
.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
}
.score-badge,
.rank-mark {
  position: absolute;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  font-weight: 900;
}
.score-badge {
  top: 12px;
  right: 12px;
  min-width: 48px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: #111827;
  background: #fbbf24;
}
.rank-mark {
  left: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.86);
}
.movie-card-body {
  padding: 16px;
}
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}
.movie-tags span {
  padding: 4px 7px;
  border-radius: 999px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 12px;
}
.movie-card h3 {
  margin: 10px 0 6px;
  font-size: 17px;
  line-height: 1.35;
}
.movie-card h3 a:hover {
  text-decoration: underline;
}
.meta-line {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}
.card-desc {
  display: -webkit-box;
  min-height: 46px;
  margin: 10px 0 0;
  overflow: hidden;
  color: #4b5563;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  line-height: 1.65;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.category-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}
.category-card a {
  display: block;
  padding: 24px;
}
.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}
.category-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}
.page-hero {
  padding: 54px 0 20px;
}
.page-panel {
  overflow: hidden;
  border-radius: 30px;
  padding: 44px;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 15%, rgba(239, 68, 68, 0.28), transparent 26%),
    linear-gradient(135deg, #111827, #374151);
  box-shadow: var(--shadow);
}
.page-panel h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 4vw, 58px);
  letter-spacing: -0.06em;
}
.page-panel p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
  font-size: 18px;
}
.detail-hero {
  padding: 28px 0 0;
}
.breadcrumb {
  margin-bottom: 16px;
  color: #6b7280;
  font-size: 14px;
}
.breadcrumb a:hover {
  color: #111827;
  text-decoration: underline;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 24px;
  align-items: start;
}
.player-panel,
.info-panel,
.text-panel {
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}
.player-panel {
  overflow: hidden;
}
.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}
.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  cursor: pointer;
}
.player-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  background: #111827;
}
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  filter: saturate(1.05);
}
.player-cover.is-hidden {
  display: none;
}
.play-button {
  position: absolute;
  z-index: 7;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.28);
  font-size: 32px;
  cursor: pointer;
}
.detail-title-area {
  padding: 24px;
}
.detail-title-area h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.05em;
}
.detail-title-area p {
  margin: 0;
  color: #4b5563;
  line-height: 1.8;
  font-size: 16px;
}
.info-panel {
  padding: 20px;
}
.info-panel img {
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.info-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
  color: #4b5563;
}
.info-row strong {
  color: #111827;
  white-space: nowrap;
}
.text-panel {
  margin-top: 24px;
  padding: 28px;
}
.text-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}
.text-panel p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 1.9;
}
.no-results {
  display: none;
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  color: #6b7280;
  text-align: center;
}
.site-footer {
  margin-top: 42px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0;
  color: #4b5563;
}
.footer-inner p {
  margin: 8px 0 0;
}
.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
  font-weight: 700;
}
.footer-links a:hover {
  text-decoration: underline;
}
@media (max-width: 1050px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-slide {
    grid-template-columns: 1fr;
  }
  .hero-poster {
    position: absolute;
    inset: 0;
  }
  .hero-poster::after {
    background: rgba(17, 24, 39, 0.62);
  }
}
@media (max-width: 780px) {
  .header-inner {
    height: 66px;
  }
  .main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }
  .main-nav.open {
    display: flex;
  }
  .menu-button {
    display: block;
  }
  .hero-frame {
    min-height: 610px;
    border-radius: 26px;
  }
  .hero-copy {
    padding: 42px 28px;
  }
  .hero-dots {
    left: 28px;
  }
  .toolbar {
    grid-template-columns: 1fr;
  }
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .page-panel {
    padding: 32px 24px;
  }
  .footer-inner {
    flex-direction: column;
  }
}
@media (max-width: 430px) {
  .container,
  .header-inner {
    width: min(100% - 22px, 1180px);
  }
  .brand-text {
    font-size: 17px;
  }
  .movie-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 38px;
  }
}
