:root {
  --red: #dc2626;
  --red-dark: #7f1d1d;
  --orange: #ea580c;
  --amber: #f59e0b;
  --teal: #0f766e;
  --cyan: #155e75;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f8fafc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--soft);
  color: var(--ink);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 21px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.25);
}

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

.brand-name {
  font-weight: 800;
  font-size: 20px;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s ease;
}

.nav-link:hover {
  background: #f3f4f6;
  color: var(--red);
}

.nav-link.active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 18px rgba(220, 38, 38, 0.22);
}

.search-pill,
.menu-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
  font-size: 22px;
  cursor: pointer;
  transition: 0.2s ease;
}

.search-pill:hover,
.menu-toggle:hover {
  background: #e5e7eb;
}

.menu-toggle {
  display: none;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
  border-top: 1px solid var(--line);
}

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

.hero-section {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #7f1d1d 0%, #9a3412 48%, #b45309 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.32), transparent 18%), radial-gradient(circle at 80% 35%, rgba(255, 255, 255, 0.24), transparent 22%), linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.08) 75%, transparent 75%, transparent);
  background-size: auto, auto, 54px 54px;
}

.hero-shell {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 460px;
  align-items: center;
  gap: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fde68a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 20px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 900;
}

.hero-copy h1 span {
  color: #fcd34d;
}

.hero-copy p {
  max-width: 650px;
  color: #f3f4f6;
  font-size: 20px;
  line-height: 1.7;
  margin: 0 0 28px;
}

.hero-search {
  display: flex;
  width: min(640px, 100%);
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}

.hero-search button {
  border: 0;
  border-radius: 14px;
  padding: 0 24px;
  background: #111827;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

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

.hero-nav-links a {
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  font-weight: 800;
  transition: 0.2s ease;
}

.hero-nav-links a:hover {
  background: #fff;
  color: var(--red-dark);
  transform: translateY(-2px);
}

.hero-slider-wrap {
  position: relative;
}

.hero-slider {
  position: relative;
  height: 520px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 34px;
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.05)), var(--hero-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-content {
  display: grid;
  gap: 13px;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.hero-content strong {
  font-size: 31px;
  line-height: 1.15;
}

.hero-content > span:not(.hero-kicker):not(.hero-tags):not(.hero-actions) {
  color: #e5e7eb;
  line-height: 1.6;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
}

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

.hero-actions em,
.hero-actions b {
  font-style: normal;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 800;
}

.hero-actions em {
  background: #fff;
  color: var(--red-dark);
}

.hero-actions b {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.hero-controls button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.hero-controls span {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  background: rgba(255, 255, 255, 0.42) !important;
}

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

.section-pad {
  padding: 64px 0;
}

.white-zone {
  background: #fff;
}

.dark-zone {
  color: #fff;
  background: linear-gradient(135deg, #134e4a 0%, #155e75 100%);
}

.dark-zone .section-head h2,
.dark-zone .section-head p {
  color: #fff;
}

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

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-link {
  flex: none;
  padding: 11px 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--red);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.white-zone .section-link,
.shell > .section-head .section-link {
  background: var(--red);
  color: #fff;
}

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

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111827;
}

.movie-card.compact .poster-wrap {
  aspect-ratio: 16 / 10;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%);
}

.poster-badge,
.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: rgba(245, 158, 11, 0.94);
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.movie-card-body strong {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-line {
  display: -webkit-box;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meta-row span,
.tag-row span {
  border-radius: 999px;
  padding: 4px 9px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
}

.tag-row span {
  color: var(--red);
  background: #fef2f2;
}

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

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

.category-tile {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 136px;
  overflow: hidden;
  background: #111827;
}

.category-preview img {
  width: 100%;
  height: 100%;
  min-height: 136px;
  object-fit: cover;
}

.category-body {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.category-body strong {
  font-size: 22px;
}

.category-body span {
  color: var(--muted);
  line-height: 1.6;
}

.category-body em {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--red);
  background: #fef2f2;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

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

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

.full-rank {
  grid-template-columns: 1fr;
}

.rank-item {
  display: grid;
  grid-template-columns: 54px 86px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  color: inherit;
  background: rgba(255, 255, 255, 0.11);
  transition: 0.2s ease;
}

.full-rank .rank-item {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.rank-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.18);
}

.full-rank .rank-item:hover {
  background: #fff7ed;
}

.rank-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--amber);
  color: #fff;
  font-weight: 900;
}

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

.rank-info {
  display: grid;
  gap: 6px;
}

.rank-info strong {
  font-size: 16px;
}

.rank-info span {
  display: -webkit-box;
  overflow: hidden;
  color: currentColor;
  opacity: 0.76;
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.rank-meta {
  color: currentColor;
  opacity: 0.75;
  font-size: 13px;
  white-space: nowrap;
}

.cta-band {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 0;
}

.cta-inner h2 {
  margin: 0 0 8px;
  font-size: 32px;
}

.cta-inner p {
  margin: 0;
  color: #fffbeb;
}

.cta-inner a {
  flex: none;
  padding: 14px 22px;
  border-radius: 14px;
  background: #fff;
  color: var(--orange);
  font-weight: 900;
}

.page-hero {
  position: relative;
  padding: 88px 0;
  color: #fff;
  background: linear-gradient(135deg, #7f1d1d, #9a3412 54%, #b45309);
  overflow: hidden;
}

.page-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: radial-gradient(circle at 12% 20%, #fff, transparent 22%), radial-gradient(circle at 90% 24%, #fff, transparent 20%);
}

.page-hero .shell {
  position: relative;
}

.page-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #f3f4f6;
  font-size: 18px;
  line-height: 1.7;
}

.filter-panel {
  margin-bottom: 28px;
  border-radius: 22px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.filter-title {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 900;
}

.filter-controls {
  display: grid;
  grid-template-columns: 1fr 160px 180px 160px;
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 1px solid var(--line);
  outline: 0;
  border-radius: 14px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}

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

.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  color: var(--muted);
  font-size: 14px;
}

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

.breadcrumb strong {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.24)), var(--poster-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-ring {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.35);
}

.play-ring span {
  margin-left: 6px;
  color: var(--red);
  font-size: 36px;
}

.detail-card,
.side-card {
  margin-top: 24px;
  border-radius: 24px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.detail-meta span,
.detail-meta a {
  padding: 8px 12px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.detail-meta a {
  color: var(--red);
  background: #fef2f2;
}

.detail-card section {
  margin: 0 0 26px;
}

.detail-card h2,
.side-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.detail-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.85;
}

.lead-text {
  font-weight: 700;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--red);
  background: #fef2f2;
  font-size: 13px;
  font-weight: 800;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 92px;
}

.poster-card {
  display: grid;
  gap: 12px;
}

.poster-card img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.poster-card strong {
  font-size: 22px;
}

.poster-card span {
  color: var(--muted);
}

.side-related {
  display: grid;
  gap: 14px;
}

.side-related .movie-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  box-shadow: none;
  border: 1px solid var(--line);
}

.side-related .movie-card:hover {
  transform: none;
}

.side-related .movie-card-body strong {
  min-height: 0;
  font-size: 15px;
}

.related-section {
  padding-top: 10px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 28px;
  padding: 46px 0 28px;
}

.footer-logo {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 420px;
  margin: 0;
  color: #9ca3af;
  line-height: 1.7;
}

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

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

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

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

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .hero-shell,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    padding: 54px 0;
  }

  .hero-slider {
    height: 460px;
  }

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

  .detail-side {
    position: static;
  }

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

@media (max-width: 760px) {
  .desktop-nav,
  .search-pill {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero-section,
  .hero-shell {
    min-height: auto;
  }

  .hero-shell {
    gap: 30px;
    padding: 42px 0;
  }

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

  .hero-search {
    flex-direction: column;
    gap: 8px;
  }

  .hero-search button {
    padding: 14px 18px;
  }

  .hero-slider {
    height: 420px;
    border-radius: 22px;
  }

  .hero-slide {
    padding: 24px;
  }

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

  .movie-grid.four-cols,
  .movie-grid.three-cols,
  .featured-grid,
  .category-grid,
  .category-grid.large,
  .home-rank,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-item {
    grid-template-columns: 42px 72px 1fr;
  }

  .rank-meta {
    display: none;
  }

  .detail-card,
  .side-card {
    padding: 20px;
  }

  .side-related .movie-card {
    grid-template-columns: 105px 1fr;
  }
}
