* {
  box-sizing: border-box;
}

:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --pink: #db2777;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --panel: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

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

.brand:hover .brand-mark {
  transform: scale(1.08);
}

.brand-text strong {
  display: block;
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.brand-text small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}

.nav-link {
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red);
}

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

.mobile-nav {
  display: none;
  padding: 8px 18px 18px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-nav.open {
  display: grid;
  gap: 6px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 600;
}

.mobile-link:hover,
.mobile-link.active {
  background: #fef2f2;
  color: var(--red);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.15));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 66px;
  width: min(1280px, 100%);
  padding: 0 22px;
  transform: translateX(-50%);
  color: #ffffff;
}

.hero-content h1 {
  max-width: 760px;
  margin: 16px 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 18px;
}

.hero-kicker,
.hero-tags,
.detail-meta,
.tag-row,
.meta-line,
.hero-actions,
.quick-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-kicker span,
.hero-tags span {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(8px);
  font-size: 14px;
}

.hero-kicker span:first-child {
  background: var(--red);
  font-weight: 800;
}

.hero-actions {
  margin-top: 26px;
}

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  padding: 0 28px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--pink));
  box-shadow: 0 16px 30px rgba(220, 38, 38, 0.28);
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 34px rgba(220, 38, 38, 0.34);
}

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

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

.hero-control {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 42px;
  line-height: 1;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

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

.intro-band,
.page-main,
.content-section,
.category-strip,
.category-overview,
.site-footer .footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

.intro-band {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.intro-band h2,
.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  letter-spacing: -0.035em;
}

.intro-band p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.category-tile {
  position: relative;
  min-height: 174px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-tile img,
.category-tile span {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile img {
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile span {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.15));
}

.category-tile strong,
.category-tile small {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0 18px;
}

.category-tile strong {
  margin-top: 92px;
  font-size: 22px;
}

.category-tile small {
  margin-top: 6px;
  color: #e5e7eb;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.content-section {
  padding-top: 48px;
  padding-bottom: 8px;
}

.white-panel,
.soft-panel {
  margin-top: 40px;
  padding: 32px 18px;
  border-radius: 22px;
}

.white-panel {
  background: #ffffff;
  box-shadow: var(--shadow);
}

.soft-panel {
  background: linear-gradient(90deg, #eff6ff, #faf5ff);
}

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

.section-heading h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-heading a,
.text-link {
  color: var(--red);
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.movie-card {
  min-width: 0;
  transition: transform 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px) scale(1.015);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: #e5e7eb;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.12);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.75);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-badge,
.poster-type {
  position: absolute;
  top: 9px;
  padding: 4px 8px;
  border-radius: 7px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.poster-badge {
  left: 9px;
  background: var(--red);
}

.poster-type {
  right: 9px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.movie-card-body {
  padding: 10px 2px 0;
}

.movie-card-body h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body h3 a:hover {
  color: var(--red);
}

.movie-card-body p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.meta-line span {
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.tag-row {
  margin-top: 8px;
}

.tag-row span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fef2f2;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
}

.search-panel {
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f9fafb;
}

.search-box span {
  color: var(--muted);
  font-size: 22px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.quick-filters {
  margin-top: 14px;
}

.quick-filters button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: #374151;
  background: #f3f4f6;
  cursor: pointer;
  font-weight: 700;
}

.quick-filters button:hover,
.quick-filters button.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--pink));
}

.page-main {
  padding-top: 28px;
}

.page-hero {
  min-height: 260px;
  border-radius: 24px;
  padding: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #7f1d1d 48%, #be185d);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  max-width: 780px;
  margin: 12px 0 0;
  color: #f3f4f6;
  font-size: 17px;
}

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

.category-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-card-media {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 190px;
  overflow: hidden;
  background: #e5e7eb;
}

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

.category-card-body {
  padding: 22px;
}

.category-card-body h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card-body p {
  margin: 0 0 14px;
  color: var(--muted);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 62px 92px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
}

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

.rank-cover {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: #e5e7eb;
}

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

.rank-body h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-body p {
  margin: 0;
  color: var(--muted);
}

.breadcrumb {
  margin: 4px 0 22px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--red);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(240px, 330px) 1fr;
  gap: 34px;
  align-items: end;
  padding: 34px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #7f1d1d 46%, #be185d);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: #1f2937;
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.32);
}

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

.detail-info h1 {
  max-width: 860px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 860px;
  margin: 18px 0;
  color: #f3f4f6;
  font-size: 18px;
}

.detail-meta {
  margin-bottom: 14px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  color: #ffffff;
}

.large-tags span {
  background: rgba(255, 255, 255, 0.17);
  color: #ffffff;
}

.detail-info .primary-btn {
  margin-top: 22px;
}

.player-section {
  padding-top: 34px;
}

.video-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-start {
  position: absolute;
  inset: 0;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.22), rgba(0, 0, 0, 0.58));
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-start span {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  box-shadow: 0 20px 42px rgba(220, 38, 38, 0.36);
}

.video-shell.playing .player-start {
  display: none;
}

.article-section {
  max-width: 980px;
}

.detail-article {
  padding: 28px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-article p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.detail-article h2 {
  margin: 26px 0 12px;
  font-size: 26px;
}

.site-footer {
  margin-top: 64px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
  padding-top: 34px;
  padding-bottom: 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand p {
  margin: 4px 0 0;
  color: #9ca3af;
}

.footer-links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.footer-copy {
  margin: 24px 0 0;
  color: #9ca3af;
  font-size: 13px;
}

.hidden-by-filter {
  display: none !important;
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }

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

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

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

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

  .hero-carousel {
    min-height: 560px;
    height: 78vh;
  }

  .hero-content {
    bottom: 72px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-control {
    display: none;
  }

  .intro-band,
  .page-hero,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .detail-poster {
    max-width: 330px;
  }

  .rank-item {
    grid-template-columns: 50px 74px 1fr;
    gap: 12px;
  }
}

@media (max-width: 620px) {
  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    display: none;
  }

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

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

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

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

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .white-panel,
  .soft-panel {
    padding: 24px 14px;
  }

  .page-hero,
  .detail-hero {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .rank-body p {
    display: none;
  }

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

  .player-start span {
    width: 68px;
    height: 68px;
    font-size: 30px;
  }
}
