/* Static movie site styles. Visual direction follows the uploaded red/slate movie template. */
:root {
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --bg-soft: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --accent: #dc2626;
  --accent-dark: #991b1b;
  --accent-soft: #fee2e2;
  --border: #e2e8f0;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background: var(--bg-soft);
  line-height: 1.6;
}

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

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

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #0f172a, #1e293b 50%, #7f1d1d);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
}

.site-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand {
  color: #fff;
  font-size: 24px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.12);
  font-size: 15px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link,
.nav-dropdown-toggle {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-dropdown-toggle:hover {
  color: #fca5a5;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  border: 0;
  background: transparent;
  padding: 0;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  min-width: 180px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-main);
  font-size: 14px;
}

.nav-dropdown-menu a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.mobile-toggle {
  display: none;
  color: #fff;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  font-size: 22px;
}

.hero-slider {
  position: relative;
  height: 590px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #020617, #7f1d1d, #111827);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(9px) saturate(1.12);
  transform: scale(1.06);
  opacity: 0.42;
}

.hero-overlay,
.detail-bg-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(220, 38, 38, 0.34), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.74) 54%, rgba(127, 29, 29, 0.70));
}

.hero-inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: center;
}

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

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.14);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.36);
  font-size: 13px;
  font-weight: 800;
}

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

.hero-copy p {
  max-width: 680px;
  margin: 0 0 20px;
  color: #e2e8f0;
  font-size: clamp(16px, 2vw, 21px);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.30);
}

.btn-primary:hover {
  background: #b91c1c;
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(10px);
}

.btn-light {
  color: var(--accent);
  background: #fff;
  box-shadow: 0 14px 30px rgba(127, 29, 29, 0.26);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  background: #1e293b;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.45);
  transform: rotate(2deg);
}

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

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px;
  border-radius: 14px;
  text-align: center;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

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

.section {
  padding: 70px 0;
}

.bg-white {
  background: #fff;
}

.bg-soft {
  background: var(--bg-soft);
}

.bg-slate {
  background: #0f172a;
}

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

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.section-heading p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--text-muted);
}

.bg-slate .section-heading h2,
.bg-slate .section-heading p {
  color: #fff;
}

.section-action {
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card[hidden] {
  display: none;
}

.movie-card-link {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  background: #cbd5e1;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.feature-grid .poster-wrap,
.rank-grid .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.75), transparent 50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 10px;
  right: auto;
  background: #f59e0b;
}

.play-mask {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(220, 38, 38, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: all 0.25s ease;
}

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

.movie-card h3 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin: 11px 0 4px;
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--accent);
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 12px;
}

.card-meta span + span::before {
  content: "·";
  margin-right: 8px;
}

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

.tag-row span {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

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

.category-card,
.category-overview-card a,
.prose-card,
.content-card,
.ranking-panel,
.filter-panel {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.category-card {
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-covers,
.category-wide-covers {
  display: grid;
  gap: 6px;
  overflow: hidden;
  border-radius: 14px;
}

.category-covers {
  grid-template-columns: repeat(4, 1fr);
}

.category-wide-covers {
  grid-template-columns: repeat(6, 1fr);
}

.category-covers img,
.category-wide-covers img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #cbd5e1;
}

.category-card h3,
.category-overview-body h2 {
  margin: 16px 0 6px;
  font-size: 20px;
}

.category-card p,
.category-overview-body p,
.prose-card p {
  color: var(--text-muted);
}

.category-card span,
.category-overview-body span {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 800;
}

.category-overview-card a {
  padding: 18px;
}

.page-hero {
  padding: 56px 0;
  color: #fff;
  background: linear-gradient(120deg, #0f172a, #7f1d1d);
}

.page-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 800px;
  margin: 0;
  color: #e2e8f0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #fecaca;
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a::after {
  content: "/";
  margin-left: 8px;
  color: rgba(254, 202, 202, 0.6);
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 160px;
  gap: 12px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box span {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
}

.search-box input,
.filter-row select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.search-box input {
  padding: 0 14px 0 42px;
}

.filter-row select {
  padding: 0 12px;
}

.search-box input:focus,
.filter-row select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.filter-note {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 30px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 900;
}

.ranking-head a {
  color: var(--accent);
  font-size: 14px;
}

.ranking-panel ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-panel li + li {
  border-top: 1px solid var(--border);
}

.ranking-panel li a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 56px;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
}

.rank-num {
  color: var(--accent);
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.rank-year {
  color: var(--text-muted);
  text-align: right;
  font-size: 13px;
}

.cta-band {
  padding: 72px 0;
  color: #fff;
  background: linear-gradient(90deg, #dc2626, #7f1d1d);
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
}

.cta-inner p {
  margin: 0 auto 24px;
  max-width: 720px;
  color: #fee2e2;
  font-size: 18px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #fff;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.42;
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 36px 0 64px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  margin-top: 24px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: #1e293b;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.55);
}

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

.detail-info h1 {
  margin: 18px 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.detail-one-line {
  max-width: 760px;
  margin: 0 0 18px;
  color: #e2e8f0;
  font-size: 20px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.24), rgba(2, 6, 23, 0.72));
  font-size: 20px;
  font-weight: 900;
}

.player-start span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 14px rgba(220, 38, 38, 0.16);
}

.player-card.is-playing .player-start {
  display: none;
}

.player-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  margin: 0;
  color: #fecaca;
  text-align: center;
  font-size: 14px;
}

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

.content-card {
  padding: 24px;
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #334155;
}

.meta-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
}

.meta-card dt {
  color: var(--text-muted);
}

.meta-card dd {
  margin: 0;
  font-weight: 700;
}

.meta-card a {
  color: var(--accent);
}

.prose-card {
  padding: 28px;
}

.prose-card p {
  margin: 0 0 16px;
  font-size: 16px;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 50px 0;
}

.footer-brand {
  color: #fff;
  font-size: 20px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer p {
  max-width: 360px;
  color: #94a3b8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 8px 0;
}

.site-footer a:hover {
  color: #fca5a5;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 14px;
}

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

  .feature-grid,
  .rank-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .mobile-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 16px;
    background: #111827;
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    margin-top: 10px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: block;
  }

  .hero-slider {
    height: auto;
    min-height: 680px;
  }

  .hero-inner,
  .detail-layout,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 70px 0 80px;
  }

  .hero-poster,
  .detail-poster {
    max-width: 260px;
    margin: 0 auto;
  }

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

  .filter-row {
    grid-template-columns: 1fr;
  }

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

  .feature-grid,
  .rank-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1200px);
  }

  .brand {
    font-size: 20px;
  }

  .hero-copy h1,
  .detail-info h1 {
    font-size: 34px;
  }

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

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

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

  .section {
    padding: 48px 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}
