:root {
  --site-primary: #0284c7;
  --site-primary-dark: #0369a1;
  --site-accent: #f59e0b;
  --site-bg: #fafaf9;
  --site-panel: #ffffff;
  --site-text: #1c1917;
  --site-muted: #78716c;
  --site-border: #e7e5e4;
  --site-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --site-shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.18);
}

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

img {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(231, 229, 228, 0.9);
  box-shadow: var(--site-shadow);
  backdrop-filter: blur(14px);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--site-text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--site-primary), #38bdf8);
  color: #fff;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.3);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
}

.nav-link,
.mobile-link {
  border-radius: 10px;
  color: #57534e;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding: 10px 12px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--site-primary-dark);
  background: #f0f9ff;
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.nav-search input,
.mobile-search input {
  width: 190px;
  padding: 10px 12px;
  outline: none;
  color: var(--site-text);
}

.nav-search button,
.mobile-search button,
.filter-button {
  padding: 10px 14px;
  background: var(--site-primary);
  color: #fff;
  font-weight: 700;
  transition: background 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.filter-button:hover {
  background: var(--site-primary-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f5f5f4;
  color: var(--site-text);
  font-size: 22px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--site-border);
  background: #fff;
}

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

.mobile-panel-inner {
  padding-top: 14px;
  padding-bottom: 18px;
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mobile-link {
  padding: 12px;
}

.mobile-search input {
  width: 100%;
}

.hero-carousel {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #0c0a09;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.12));
}

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

.hero-copy {
  max-width: 720px;
  color: #fff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 650px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.detail-tags span,
.tag-row span {
  padding: 5px 9px;
  background: #f0f9ff;
  color: var(--site-primary-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.btn-primary,
.btn-light,
.btn-plain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--site-primary);
  color: #fff;
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.32);
}

.btn-primary:hover {
  background: var(--site-primary-dark);
  transform: translateY(-1px);
}

.btn-light {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(10px);
}

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

.btn-plain {
  background: #f5f5f4;
  color: var(--site-text);
}

.btn-plain:hover {
  background: #e7e5e4;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.65);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.2s ease, background 0.2s ease;
}

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

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

.content-section.is-muted {
  background: #f5f5f4;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--site-text);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-lead {
  max-width: 820px;
  margin: 10px 0 0;
  color: var(--site-muted);
  line-height: 1.8;
}

.category-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 0 8px;
}

.category-strip a {
  flex: 0 0 auto;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  padding: 10px 16px;
  background: #fff;
  color: #57534e;
  font-weight: 700;
  box-shadow: var(--site-shadow);
}

.category-strip a:hover {
  border-color: #bae6fd;
  color: var(--site-primary-dark);
  background: #f0f9ff;
}

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--site-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

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

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

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

.movie-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--site-muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 9px 0 8px;
  color: var(--site-text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.movie-card p {
  min-height: 44px;
  margin: 0 0 12px;
  color: #57534e;
  font-size: 14px;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}

.feature-large .movie-poster {
  aspect-ratio: 16 / 10;
}

.horizontal-list {
  display: grid;
  gap: 18px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 0;
}

.horizontal-card .movie-poster {
  aspect-ratio: 4 / 3;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--site-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--site-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  border-color: #bae6fd;
}

.rank-number {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f0f9ff;
  color: var(--site-primary-dark);
  font-weight: 900;
}

.rank-item img {
  width: 76px;
  height: 104px;
  border-radius: 10px;
  object-fit: cover;
  background: #e7e5e4;
}

.rank-item strong {
  display: block;
  color: var(--site-text);
  font-size: 17px;
  line-height: 1.35;
}

.rank-item em {
  display: block;
  margin-top: 6px;
  color: var(--site-muted);
  font-size: 13px;
  font-style: normal;
}

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

.category-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--site-border);
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--site-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

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

.category-thumbs img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  object-fit: cover;
  background: #e7e5e4;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid var(--site-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--site-shadow);
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  outline: none;
}

.filter-panel input {
  flex: 1 1 260px;
}

.filter-panel select {
  flex: 0 1 220px;
}

.empty-state {
  display: none;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  color: var(--site-muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.detail-hero {
  background: linear-gradient(135deg, #0c0a09, #1e293b 48%, #075985);
  color: #fff;
  padding: 52px 0;
}

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

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

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

.detail-cover {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--site-shadow-lg);
  background: #111827;
}

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

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-line {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.8;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 44px 0 60px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: var(--site-shadow-lg);
}

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--site-primary);
  color: #fff;
  font-size: 30px;
  box-shadow: 0 14px 35px rgba(2, 132, 199, 0.36);
}

.player-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: none;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  text-align: center;
}

.player-message.is-visible {
  display: block;
}

.article-panel,
.side-panel {
  border: 1px solid var(--site-border);
  border-radius: 18px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--site-shadow);
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 900;
}

.article-panel p {
  margin: 0 0 18px;
  color: #44403c;
  font-size: 16px;
  line-height: 1.9;
}

.side-panel {
  position: sticky;
  top: 96px;
}

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

.site-footer {
  background: #1c1917;
  color: #d6d3d1;
}

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

.footer-logo {
  margin-bottom: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  color: #a8a29e;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

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

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

.footer-bottom {
  border-top: 1px solid #292524;
  padding: 18px;
  color: #a8a29e;
  text-align: center;
  font-size: 14px;
}

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

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-shell {
    gap: 14px;
  }
}

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

  .hero-carousel {
    height: 520px;
  }

  .hero-arrow {
    display: none;
  }

  .feature-grid,
  .detail-layout,
  .detail-main,
  .footer-grid,
  .category-overview {
    grid-template-columns: 1fr;
  }

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

  .side-panel {
    position: static;
  }

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

@media (max-width: 640px) {
  .site-logo {
    font-size: 17px;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
  }

  .hero-carousel {
    height: 500px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 38px;
  }

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

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

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

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

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

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

  .horizontal-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .category-card {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    padding: 12px;
  }

  .filter-panel input,
  .filter-panel select,
  .filter-button {
    flex: 1 1 100%;
    width: 100%;
  }

  .detail-hero {
    padding: 34px 0;
  }

  .detail-main {
    padding-top: 30px;
  }

  .article-panel,
  .side-panel {
    padding: 18px;
  }
}
