:root {
  --site-red: #dc2626;
  --site-pink: #db2777;
  --site-dark: #111827;
  --site-muted: #6b7280;
  --site-soft: #f3f4f6;
  --site-line: #e5e7eb;
  --site-card: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--site-red), var(--site-pink));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.25);
  transition: transform 0.25s ease;
}

.logo-link:hover .logo-mark {
  transform: scale(1.08) rotate(-4deg);
}

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

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--site-red);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #111827;
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--site-line);
  padding: 12px 16px 18px;
  background: rgba(255, 255, 255, 0.98);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 600;
}

.mobile-nav a:hover {
  background: #f9fafb;
  color: var(--site-red);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
}

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.16) 100%);
}

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

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
}

.badge-hot {
  background: linear-gradient(135deg, var(--site-red), var(--site-pink));
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}

.hero-one-line {
  margin: 0 0 10px;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
  color: #f9fafb;
}

.hero-summary {
  max-width: 690px;
  margin: 0 0 26px;
  color: #d1d5db;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-red), var(--site-pink));
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.28);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.ghost-button {
  color: var(--site-red);
  background: #ffffff;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.hero-search {
  width: min(620px, 100%);
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-search input,
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  border-radius: 13px;
  padding: 13px 16px;
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
  font-size: 15px;
}

.hero-search button,
.search-box button {
  border: 0;
  cursor: pointer;
}

.hero-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 30px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-next {
  right: 24px;
  transform: translateY(-50%);
}

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

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

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

.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 16px 72px;
}

.section {
  margin-bottom: 64px;
}

.section-card {
  padding: 34px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
}

.section-soft-red {
  background: linear-gradient(90deg, #fff7ed 0%, #fff1f2 100%);
}

.section-soft-green {
  background: linear-gradient(90deg, #ecfdf5 0%, #f0fdfa 100%);
}

.section-soft-yellow {
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
}

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

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--site-red), var(--site-pink));
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.2);
}

.section-title {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  font-weight: 900;
}

.section-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--site-muted);
  line-height: 1.8;
}

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

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

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

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

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
}

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

.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-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.78) 100%);
}

.poster-play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 900;
}

.poster-meta {
  position: absolute;
  right: 12px;
  bottom: 16px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.movie-info {
  padding: 16px;
}

.movie-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-title a:hover {
  color: var(--site-red);
}

.movie-line {
  margin: 0 0 12px;
  min-height: 44px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.meta-pill {
  padding: 4px 9px;
  border-radius: 8px;
  background: #f3f4f6;
}

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

.category-card {
  padding: 24px;
  min-height: 180px;
  border-radius: 24px;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.14);
}

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

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

.page-hero {
  padding: 54px 16px 44px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 0%, rgba(244, 63, 94, 0.62), transparent 32%), linear-gradient(135deg, #111827 0%, #1f2937 55%, #7f1d1d 100%);
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #ffffff;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 900;
}

.page-hero p {
  max-width: 830px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.85;
}

.search-panel {
  margin: -26px auto 36px;
  max-width: 1280px;
  padding: 0 16px;
  position: relative;
  z-index: 3;
}

.search-box {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

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

.filter-row button {
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  color: #374151;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  font-weight: 700;
}

.filter-row button.is-active,
.filter-row button:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-red), var(--site-pink));
}

.no-results {
  display: none;
  padding: 48px 20px;
  border-radius: 24px;
  color: #6b7280;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
}

.no-results.is-visible {
  display: block;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 56px 86px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-red), var(--site-pink));
  font-weight: 900;
}

.ranking-cover {
  width: 86px;
  height: 118px;
  border-radius: 14px;
  object-fit: cover;
  background: #111827;
}

.ranking-copy h2,
.ranking-copy h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 900;
}

.ranking-copy p {
  margin: 0;
  color: #6b7280;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 28px;
}

.player-panel,
.detail-panel,
.related-panel {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000000;
}

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

.player-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
  transform: translate(-50%, -50%);
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.detail-panel {
  padding: 28px;
}

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
  font-weight: 900;
}

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

.detail-meta span,
.detail-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 700;
  font-size: 13px;
}

.detail-tags span:first-child {
  color: #991b1b;
  background: #fee2e2;
}

.detail-text h2 {
  margin: 28px 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.detail-text p {
  margin: 0 0 14px;
  color: #374151;
  line-height: 1.9;
}

.detail-side {
  display: grid;
  gap: 20px;
  align-content: start;
}

.side-cover {
  border-radius: 26px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

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

.related-panel {
  padding: 22px;
}

.related-panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 900;
}

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

.related-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 68px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.related-item h3 {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 850;
}

.related-item p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.site-footer {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #d1d5db;
}

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

.footer-title {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.footer-inner p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

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

.footer-links h2,
.footer-links h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 17px;
}

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

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

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

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

  .detail-side {
    grid-template-columns: minmax(0, 300px) 1fr;
  }
}

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

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

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

  .hero {
    min-height: 620px;
    height: auto;
  }

  .hero-content {
    padding-top: 140px;
    padding-bottom: 82px;
  }

  .hero-control {
    display: none;
  }

  .hero-search,
  .search-box {
    flex-direction: column;
  }

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

  .section-card {
    padding: 22px;
  }

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

  .ranking-item {
    grid-template-columns: 44px 70px 1fr;
  }

  .ranking-item .ghost-button {
    grid-column: 3;
    justify-self: start;
  }

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

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

@media (max-width: 520px) {
  .logo-subtitle {
    display: none;
  }

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

  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .movie-grid,
  .movie-grid.compact,
  .movie-grid.wide,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 38px 62px 1fr;
    gap: 10px;
  }

  .ranking-cover {
    width: 62px;
    height: 86px;
  }
}
