:root {
  --red: #dc2626;
  --red-dark: #7f1d1d;
  --orange: #ea580c;
  --amber: #fbbf24;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
  --radius: 22px;
}

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

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

main {
  min-height: 70vh;
}

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

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: var(--white);
  font-weight: 900;
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
}

.brand-text small {
  color: var(--muted);
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 1;
}

.nav-link,
.mobile-nav-link {
  border-radius: 12px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.mobile-nav-link:hover,
.nav-link.active,
.mobile-nav-link.active {
  background: var(--red);
  color: var(--white);
  transform: translateY(-1px);
}

.nav-link.subtle {
  color: var(--muted);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #7f1d1d, #9a3412, #d97706);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.22), transparent 24%), radial-gradient(circle at 75% 35%, rgba(251, 191, 36, 0.28), transparent 26%);
  opacity: 0.7;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-content {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  max-width: 780px;
  color: var(--white);
  padding: 80px 0 120px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fde68a;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(40px, 7vw, 76px);
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  color: #fcd34d;
}

.hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: #f3f4f6;
  font-size: clamp(17px, 2.5vw, 22px);
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff7ed;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 11px;
}

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

.tag-row span {
  background: #fee2e2;
  color: #991b1b;
  font-size: 12px;
}

.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;
  border-radius: 13px;
  padding: 0 22px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

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

.btn.primary {
  background: var(--white);
  color: var(--red-dark);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
}

.btn.primary:hover {
  background: #fffbeb;
}

.btn.ghost {
  border: 2px solid rgba(255, 255, 255, 0.86);
  color: var(--white);
}

.btn.ghost:hover {
  background: var(--white);
  color: var(--red-dark);
}

.btn.text {
  color: #fde68a;
}

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

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

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

.hero-thumbs {
  position: absolute;
  right: max(24px, calc((100% - 1280px) / 2));
  bottom: 42px;
  z-index: 4;
  display: grid;
  width: min(420px, 36vw);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.42);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  backdrop-filter: blur(14px);
}

.hero-thumb img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-thumb span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
  font-weight: 800;
}

.content-section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.content-section.soft-bg {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 70px max(16px, calc((100% - 1280px) / 2));
  background: var(--white);
}

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

.section-heading h2,
.side-panel h2,
.article-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p,
.side-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-link {
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

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

.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

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

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

.movie-link {
  display: block;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, #7f1d1d, #f59e0b);
}

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

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

.type-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.type-badge {
  right: 12px;
  background: rgba(220, 38, 38, 0.92);
}

.rank-badge {
  left: 12px;
  background: rgba(17, 24, 39, 0.86);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 74px 1fr;
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  background: var(--white);
  color: inherit;
  padding: 12px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.rank-number {
  color: var(--red);
  font-size: 22px;
  font-weight: 950;
  text-align: center;
}

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

.rank-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rank-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

.rank-copy small {
  color: var(--muted);
}

.side-panel,
.article-card,
.filter-panel,
.category-overview-card,
.category-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
}

.side-panel {
  position: sticky;
  top: 98px;
  padding: 28px;
}

.category-mini-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.category-mini-list a {
  display: grid;
  gap: 4px;
  border-radius: 14px;
  background: #fff7ed;
  color: #7c2d12;
  padding: 12px;
  text-decoration: none;
}

.category-mini-list span {
  color: #9a3412;
  font-size: 13px;
}

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

.category-card,
.category-overview-card {
  display: block;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card span,
.category-overview-card span {
  color: var(--red-dark);
  font-size: 22px;
  font-weight: 950;
}

.category-card p,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

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

.category-preview img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  object-fit: cover;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #7f1d1d, #9a3412, #111827);
}

.page-hero.compact {
  padding: 86px max(16px, calc((100% - 1280px) / 2));
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 68px);
}

.page-hero p {
  max-width: 760px;
  margin-top: 16px;
  color: #f3f4f6;
  font-size: 19px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, 180px);
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 13px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.13);
}

.hidden-card {
  display: none !important;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.98;
}

.detail-inner {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  color: #f9fafb;
  font-weight: 700;
}

.breadcrumb a {
  color: #fde68a;
  text-decoration: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  margin: 0;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

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

.detail-copy h1 {
  max-width: 860px;
  font-size: clamp(34px, 5.5vw, 62px);
}

.detail-copy .lead {
  max-width: 780px;
  margin-top: 22px;
  color: #f3f4f6;
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 800;
  padding: 8px 13px;
}

.detail-tags {
  margin-bottom: 28px;
}

.player-section {
  background: #020617;
  padding: 52px max(16px, calc((100% - 1120px) / 2));
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.56));
  color: var(--white);
  font-size: 18px;
  font-weight: 950;
}

.play-overlay.is-hidden {
  display: none;
}

.play-circle {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.94);
  box-shadow: 0 16px 42px rgba(220, 38, 38, 0.36);
  font-size: 34px;
  padding-left: 5px;
}

.detail-content {
  padding-bottom: 20px;
}

.article-card {
  padding: 32px;
}

.article-card h2 + p {
  margin-top: 12px;
}

.article-card p {
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.article-card h2:not(:first-child) {
  margin-top: 30px;
}

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

.site-footer {
  background: #111827;
  color: #d1d5db;
  margin-top: 20px;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 38px;
  padding: 44px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.footer-inner p {
  max-width: 520px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

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

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

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

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

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

  .hero-thumbs {
    display: none;
  }
}

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

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 640px;
  }

  .hero-content {
    padding-top: 70px;
  }

  .movie-grid,
  .movie-grid.four,
  .featured-grid,
  .category-showcase,
  .category-overview-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-layout,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

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

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

@media (max-width: 560px) {
  .header-inner {
    width: min(100% - 20px, 1280px);
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .hero,
  .hero-slide {
    min-height: 620px;
  }

  .hero-content {
    width: min(100% - 24px, 1280px);
  }

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

  .btn {
    width: 100%;
  }

  .content-section,
  .detail-inner {
    width: min(100% - 24px, 1280px);
  }

  .movie-grid,
  .movie-grid.four,
  .featured-grid,
  .category-showcase,
  .category-overview-grid,
  .related-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .movie-info h3 {
    min-height: auto;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
