:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --orange: #f97316;
  --yellow: #f59e0b;
  --text: #111827;
  --muted: #6b7280;
  --light: #f9fafb;
  --soft: #fff1f2;
  --dark: #111827;
  --border: #e5e7eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.brand-name {
  font-size: 24px;
  background: linear-gradient(90deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.24);
}

.desktop-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  color: #374151;
  font-weight: 700;
}

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

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

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: #ffffff;
}

.header-search input {
  width: 180px;
  border: 0;
  outline: 0;
  padding: 9px 12px 9px 16px;
  border-radius: 999px;
}

.header-search button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--red);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  padding: 9px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #111827;
}

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

.mobile-nav a {
  display: block;
  padding: 12px 6px;
  font-weight: 700;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(180deg, #111827, #1f2937);
}

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

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

.hero-bg {
  position: absolute;
  inset: -18px;
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.34);
  transform: scale(1.04);
  transition: transform 5s ease;
}

.hero-slide.is-active .hero-bg {
  transform: scale(1.1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.42), rgba(17, 24, 39, 0.82));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 24px;
  max-width: 650px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  color: #f9fafb;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-meta span:first-child,
.detail-meta span:first-child {
  color: #facc15;
}

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

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

.primary-btn {
  color: #ffffff;
  background: var(--red);
  box-shadow: 0 14px 25px rgba(220, 38, 38, 0.26);
}

.primary-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

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

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

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

.section {
  padding: 76px 0;
}

.section-white {
  background: #ffffff;
}

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

.section-red {
  background: #fff1f2;
}

.section-dark {
  color: #ffffff;
  background: #111827;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
  text-align: center;
}

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

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.section-heading:not(.left-heading) {
  margin-left: auto;
  margin-right: auto;
}

.left-heading {
  text-align: left;
}

.row-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
}

.dark-heading p {
  color: #cbd5e1;
}

.text-link {
  color: var(--red);
  font-weight: 800;
}

.text-link.light {
  color: #fb923c;
}

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

.feature-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: #111827;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.22);
}

.feature-poster,
.poster-wrap {
  position: relative;
  overflow: hidden;
}

.feature-poster {
  height: 100%;
}

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

.feature-card:hover img,
.movie-card:hover img,
.wide-card:hover img {
  transform: scale(1.07);
}

.feature-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-overlay {
  opacity: 1;
}

.feature-overlay h3 {
  margin: 0 0 8px;
  font-size: 25px;
}

.feature-overlay p {
  margin: 0 0 12px;
  color: #e5e7eb;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-overlay span {
  color: #facc15;
  font-weight: 800;
}

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

.movie-grid.compact {
  gap: 20px;
}

.movie-card {
  display: block;
}

.poster-wrap {
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  background: #111827;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.16);
}

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3,
.wide-card h3 {
  margin: 12px 0 3px;
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover h3,
.wide-card:hover h3 {
  color: var(--red);
}

.movie-card p,
.wide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-dark .wide-card p {
  color: #9ca3af;
}

.pill-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 30px;
}

.pill {
  flex: 0 0 auto;
  padding: 10px 18px;
  color: #374151;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pill:hover {
  color: #ffffff;
  background: var(--red);
  transform: translateY(-2px);
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 42px;
  align-items: start;
}

.inline-btn {
  margin-top: 18px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 42px 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row:hover {
  border-color: rgba(220, 38, 38, 0.35);
  transform: translateX(4px);
}

.ranking-num {
  color: var(--red);
  font-size: 20px;
  font-weight: 900;
}

.ranking-row img {
  width: 58px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
}

.ranking-main {
  min-width: 0;
}

.ranking-main strong,
.ranking-main em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.ranking-score {
  color: var(--yellow);
  font-weight: 900;
}

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

.wide-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #000000;
}

.play-mini {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 34px;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.wide-card:hover .play-mini {
  opacity: 1;
}

.page-hero {
  position: relative;
  padding: 86px 0 72px;
  color: #ffffff;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.5), transparent 28%), linear-gradient(135deg, #111827, #7f1d1d 56%, #111827);
}

.page-hero h1 {
  max-width: 780px;
  margin: 18px 0 12px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #e5e7eb;
  font-size: 18px;
}

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

.category-tile {
  min-height: 260px;
  padding: 28px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #991b1b, #f97316);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.category-tile:nth-child(even) {
  background: linear-gradient(135deg, #111827, #dc2626);
}

.category-tile:hover {
  transform: translateY(-6px);
}

.category-tile span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.category-tile h2 {
  margin: 22px 0 10px;
  font-size: 28px;
}

.category-tile p,
.category-tile em {
  position: relative;
  z-index: 1;
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
}

.category-tile em {
  margin-top: 22px;
  font-size: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 32px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  outline: 0;
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(220, 38, 38, 0.55);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 70px;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(10px) brightness(0.26);
  transform: scale(1.04);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.95));
}

.detail-container {
  position: relative;
  z-index: 1;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.75fr);
  gap: 30px;
  align-items: start;
}

.player-card {
  border-radius: 24px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45));
  transition: opacity 0.25s ease;
}

.play-overlay span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: #ffffff;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 18px 35px rgba(220, 38, 38, 0.45);
  font-size: 36px;
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.detail-info {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  color: #ffffff;
}

.detail-info img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.16;
}

.detail-one-line {
  margin: 0 0 18px;
  color: #e5e7eb;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag-list span {
  padding: 5px 10px;
  border-radius: 999px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.12);
}

.detail-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}

.detail-article {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.detail-article h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

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

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

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.side-panel {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.side-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.ranking-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: start;
}

.sticky-ranking {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding-right: 6px;
}

.filter-card.is-hidden {
  display: none;
}

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

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

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

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

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

  .ranking-layout,
  .detail-layout,
  .detail-body-grid,
  .ranking-page-grid {
    grid-template-columns: 1fr;
  }

  .sticky-ranking {
    position: static;
    max-height: none;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 64px;
  }

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

  .hero {
    height: 560px;
  }

  .section {
    padding: 54px 0;
  }

  .row-heading {
    display: block;
  }

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

  .feature-card {
    min-height: 320px;
  }

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

  .detail-info {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .detail-info h1 {
    font-size: 27px;
  }

  .detail-meta span {
    font-size: 13px;
  }

  .detail-article,
  .side-panel {
    padding: 22px;
  }

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

  .ranking-row {
    grid-template-columns: 34px 48px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .ranking-row img {
    width: 48px;
    height: 66px;
  }
}

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

  .hero {
    height: 540px;
  }

  .hero-actions {
    gap: 10px;
  }

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

  .featured-grid,
  .category-grid,
  .movie-grid,
  .wide-grid,
  .side-related {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 410px;
  }

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

  .detail-info img {
    max-width: 170px;
  }
}
