:root {
  --primary: #dc2626;
  --primary-dark: #991b1b;
  --primary-soft: #fee2e2;
  --accent: #f97316;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #fff7ed;
  --dark: #111827;
  --shadow: 0 20px 60px rgba(127, 29, 29, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark,
.footer-brand span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.25);
}

.brand-text {
  display: grid;
  gap: 0;
}

.brand strong {
  font-size: 22px;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary), #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a,
.text-link,
.breadcrumbs a,
.detail-tags a,
.side-links a {
  color: inherit;
  text-decoration: none;
}

.desktop-nav a {
  color: #374151;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.text-link:hover,
.footer-links a:hover,
.breadcrumbs a:hover,
.detail-tags a:hover,
.side-links a:hover {
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 22px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #374151;
  font-weight: 700;
}

.hero-slider {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  color: #fff;
  background: #1f2937;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 24%, rgba(248, 113, 113, 0.34), transparent 32%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(127, 29, 29, 0.74) 44%, rgba(17, 24, 39, 0.36)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.88), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 64px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(254, 226, 226, 0.92);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 20px 0 12px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-copy .hero-movie-title {
  margin-top: 0;
  color: #fecaca;
  font-size: clamp(28px, 4vw, 46px);
}

.hero-copy p {
  max-width: 680px;
  color: #fee2e2;
  font-size: clamp(17px, 2.4vw, 23px);
}

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

.hero-tags {
  margin: 24px 0 0;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 14px 36px rgba(220, 38, 38, 0.28);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-prev,
.hero-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  padding: 0;
}

.hero-dot.is-active {
  width: 32px;
  border-radius: 999px;
  background: #fff;
}

.feature-strip {
  position: relative;
  margin-top: -48px;
  z-index: 8;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.strip-grid div {
  padding: 14px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff7ed, #fee2e2);
}

.strip-grid strong,
.strip-grid span {
  display: block;
}

.strip-grid strong {
  color: var(--primary);
  font-size: 22px;
}

.strip-grid span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 76px 0;
}

.section-soft {
  background: linear-gradient(180deg, #fff7ed, #fff);
}

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

.section-head h2,
.inner-hero h1,
.detail-head h1,
.content-card h2,
.side-card h2 {
  margin: 12px 0 8px;
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-head h2,
.inner-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
}

.section-head p,
.inner-hero p,
.topic-card p,
.content-card p,
.site-footer p {
  color: var(--muted);
}

.text-link {
  color: var(--primary);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  margin-bottom: 28px;
}

.search-box,
.select-box {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.search-box input,
.select-box select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  padding: 0 18px;
  outline: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

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

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

.large-grid,
.ranking-grid,
.related-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(220, 38, 38, 0.25);
  box-shadow: 0 26px 70px rgba(127, 29, 29, 0.18);
}

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

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  background: #111827;
  text-decoration: none;
}

.poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.78), transparent);
}

.poster-play,
.rank-mark {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  background: rgba(220, 38, 38, 0.92);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

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

.rank-mark {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, var(--accent));
  color: #7c2d12;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.card-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--primary);
  background: #fff1f2;
  font-size: 11px;
  font-weight: 900;
}

.movie-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 950;
}

.movie-card h2 a {
  color: inherit;
  text-decoration: none;
}

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

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

.category-card,
.category-tile {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  color: #fff;
  text-decoration: none;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-card {
  min-height: 220px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.category-card img,
.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 0.35s ease;
}

.category-card::after,
.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(127, 29, 29, 0.9), rgba(17, 24, 39, 0.16));
}

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

.category-card span,
.category-card p,
.category-tile div {
  position: relative;
  z-index: 2;
}

.category-card span {
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  margin: 8px 0 0;
  color: #fee2e2;
}

.category-tile {
  min-height: 270px;
  padding: 28px;
  display: flex;
  align-items: end;
}

.category-tile h2 {
  margin: 12px 0 8px;
  font-size: 28px;
  line-height: 1.15;
}

.category-tile p,
.category-tile strong {
  color: #fee2e2;
}

.category-tile strong {
  display: block;
  margin-top: 12px;
  font-size: 14px;
}

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

.compact-head {
  margin-bottom: 18px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(6px);
  border-color: rgba(220, 38, 38, 0.32);
}

.rank-item span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: var(--primary);
  font-weight: 950;
}

.rank-item img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-item strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.topic-card,
.side-card,
.content-card,
.player-card {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.topic-card {
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 36%),
    linear-gradient(135deg, #fff, #fff7ed);
}

.topic-card h2 {
  margin: 14px 0;
  font-size: 34px;
  line-height: 1.12;
}

.inner-hero {
  padding: 92px 0 68px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 12%, rgba(248, 113, 113, 0.35), transparent 28%),
    linear-gradient(135deg, #111827, #7f1d1d 60%, #dc2626);
}

.inner-hero p {
  max-width: 760px;
  color: #fee2e2;
  font-size: 20px;
}

.category-hero {
  background:
    radial-gradient(circle at 20% 18%, rgba(249, 115, 22, 0.32), transparent 24%),
    linear-gradient(135deg, #7f1d1d, #111827);
}

.ranking-hero {
  background:
    radial-gradient(circle at 78% 18%, rgba(250, 204, 21, 0.24), transparent 28%),
    linear-gradient(135deg, #111827, #991b1b);
}

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

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

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.12);
  transform: scale(1.06);
  opacity: 0.5;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(127, 29, 29, 0.70)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.98), transparent 45%);
}

.detail-head {
  position: relative;
  z-index: 2;
  padding: 38px 0 70px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 42px;
  color: #fee2e2;
  font-weight: 800;
}

.detail-title-row {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-cover {
  width: 245px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.detail-head h1 {
  max-width: 880px;
  color: #fff;
  font-size: clamp(36px, 6vw, 64px);
}

.detail-head p {
  max-width: 760px;
  color: #fee2e2;
  font-size: 20px;
}

.detail-tags {
  margin-top: 20px;
}

.detail-section {
  padding-top: 0;
  margin-top: -64px;
  position: relative;
  z-index: 5;
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card {
  overflow: hidden;
  padding: 12px;
  background: #111827;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  cursor: pointer;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.10));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  font-size: 34px;
}

.video-shell.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.content-card,
.side-card {
  padding: 26px;
}

.content-card h2,
.side-card h2 {
  font-size: 26px;
}

.content-card p + h2 {
  margin-top: 28px;
}

.detail-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 96px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.info-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.info-list strong {
  color: var(--ink);
}

.full-btn {
  width: 100%;
}

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

.side-links a {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--ink);
  background: #fff7ed;
  font-weight: 900;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
  gap: 30px;
  padding: 58px 0;
}

.footer-brand {
  margin-bottom: 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.site-footer h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 18px;
}

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

.footer-links a {
  color: #d1d5db;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
}

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 34px;
  }

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

  .detail-side {
    position: static;
  }
}

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

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

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

  .header-inner {
    height: 68px;
  }

  .brand strong {
    font-size: 19px;
  }

  .hero-slider,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding-top: 80px;
    padding-bottom: 90px;
  }

  .hero-poster {
    width: min(260px, 72vw);
    transform: none;
  }

  .strip-grid,
  .movie-grid,
  .large-grid,
  .ranking-grid,
  .related-grid,
  .category-grid,
  .category-overview,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel,
  .section-head,
  .detail-title-row {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
  }

  .detail-cover {
    width: 190px;
  }
}

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

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

  .hero-copy .hero-movie-title {
    font-size: 28px;
  }

  .strip-grid,
  .movie-grid,
  .large-grid,
  .ranking-grid,
  .related-grid,
  .category-grid,
  .category-overview,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-item {
    grid-template-columns: 34px 48px minmax(0, 1fr);
  }

  .rank-item em {
    display: none;
  }

  .section {
    padding: 54px 0;
  }

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