* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #f8fafc;
  background: #09090b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: linear-gradient(90deg, #7f1d1d, #b91c1c 48%, #7f1d1d);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

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

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #7f1d1d;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, #fde047, #f97316);
  box-shadow: 0 10px 24px rgba(253, 224, 71, 0.25);
}

.brand-text strong {
  display: block;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #fef3c7, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  display: block;
  margin-top: 4px;
  color: #fecaca;
  font-size: 12px;
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.desktop-nav a,
.mobile-nav a {
  position: relative;
  color: #fee2e2;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: #fef08a;
}

.desktop-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: #facc15;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(127, 29, 29, 0.55);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #fff;
}

.mobile-nav {
  display: none;
  padding: 12px 16px 18px;
  border-top: 1px solid rgba(254, 202, 202, 0.18);
  background: #7f1d1d;
}

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: #7f1d1d;
  background: #fde047;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 26%, rgba(250, 204, 21, 0.26), transparent 28%),
    linear-gradient(90deg, rgba(7, 7, 9, 0.96), rgba(80, 9, 9, 0.8) 45%, rgba(7, 7, 9, 0.42));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 130px;
}

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

.hero h1,
.page-hero h1,
.detail-info h1 {
  max-width: 860px;
  margin: 18px 0 20px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  margin: 0 0 26px;
  color: #f3f4f6;
  font-size: clamp(16px, 2vw, 20px);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: #fff7ed;
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.52);
  font-size: 12px;
  font-weight: 700;
}

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

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

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

.btn-primary {
  color: #7f1d1d;
  background: linear-gradient(135deg, #fde047, #f97316);
  box-shadow: 0 18px 35px rgba(249, 115, 22, 0.32);
}

.btn-soft {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

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

.hero-dot {
  width: 36px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #facc15;
}

.hero-search {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 24px;
  display: flex;
  width: min(760px, calc(100% - 32px));
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.72);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  color: #fff;
  border: 0;
  outline: none;
  padding: 0 18px;
  background: transparent;
}

.hero-search input::placeholder {
  color: #d1d5db;
}

.hero-search button {
  min-width: 112px;
  height: 46px;
  color: #7f1d1d;
  border: 0;
  border-radius: 18px;
  background: #facc15;
  font-weight: 900;
  cursor: pointer;
}

.section {
  padding: 72px 0;
}

.section-red {
  background:
    radial-gradient(circle at 20% 10%, rgba(250, 204, 21, 0.16), transparent 28%),
    linear-gradient(135deg, #7f1d1d, #450a0a);
}

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

.section-head h2 {
  margin: 6px 0 0;
  color: #fff;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
}

.section-head a {
  color: #facc15;
  font-weight: 900;
}

.section-head-light a {
  color: #fef3c7;
}

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

.movie-grid-dense {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(31, 41, 55, 0.64);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(31, 41, 55, 0.96);
  box-shadow: 0 28px 65px rgba(127, 29, 29, 0.24);
}

.movie-card figure {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: #111827;
}

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

.movie-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.movie-card figcaption {
  position: absolute;
  inset: auto 10px 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.movie-card figcaption span,
.movie-card figcaption strong,
.rank-no {
  padding: 4px 8px;
  color: #fff;
  border-radius: 999px;
  background: rgba(185, 28, 28, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.movie-card figcaption strong {
  color: #7f1d1d;
  background: #fde047;
}

.rank-no {
  background: #f97316;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  min-height: 48px;
  margin: 0 0 8px;
  color: #fff;
  font-size: 17px;
  line-height: 1.4;
}

.movie-card-compact .card-body h3 {
  min-height: auto;
  font-size: 15px;
}

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: #d1d5db;
  font-size: 14px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #fca5a5;
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 20px;
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 22px 60px rgba(0, 0, 0, 0.25);
}

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

.category-tile:hover img {
  opacity: 0.48;
  transform: scale(1.06);
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 1;
}

.category-tile span {
  display: block;
  margin-top: 72px;
  color: #fef3c7;
  font-size: 23px;
  font-weight: 900;
}

.category-tile p {
  margin: 10px 0 0;
  color: #fff7ed;
  font-size: 14px;
}

.page-hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(circle at 72% 16%, rgba(250, 204, 21, 0.2), transparent 28%),
    linear-gradient(135deg, #111827, #7f1d1d 54%, #450a0a);
}

.compact-hero {
  padding: 76px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
  color: #fecaca;
  font-size: 14px;
}

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

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

.category-panel {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background: rgba(31, 41, 55, 0.72);
}

.category-panel h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-panel p {
  margin: 0 0 20px;
  color: #d1d5db;
}

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

.category-covers img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 160px 190px;
  gap: 14px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(31, 41, 55, 0.72);
}

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  outline: 0;
  background: rgba(17, 24, 39, 0.86);
  padding: 0 14px;
}

.filter-panel input::placeholder {
  color: #9ca3af;
}

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

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

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 9, 11, 0.96), rgba(69, 10, 10, 0.86) 60%, rgba(9, 9, 11, 0.7));
}

.detail-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 72px 0;
}

.poster-card {
  padding: 10px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.35);
}

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

.detail-info h1 {
  margin-top: 20px;
}

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

.detail-meta span {
  padding: 6px 12px;
  color: #fff;
  border-radius: 999px;
  background: rgba(185, 28, 28, 0.72);
  font-weight: 800;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(250, 204, 21, 0.14);
  border-radius: 28px;
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.68), rgba(127, 29, 29, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-orb {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  color: #7f1d1d;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde047, #f97316);
  box-shadow: 0 18px 45px rgba(249, 115, 22, 0.3);
  font-size: 34px;
  text-indent: 4px;
}

.player-cover strong {
  padding: 0 20px;
  font-size: clamp(20px, 3vw, 36px);
}

.detail-content article {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(31, 41, 55, 0.66);
}

.detail-content h2 {
  margin: 0 0 12px;
  color: #fef3c7;
  font-size: 28px;
}

.detail-content p {
  margin: 0 0 26px;
  color: #e5e7eb;
  font-size: 17px;
}

.detail-content p:last-child {
  margin-bottom: 0;
}

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

.related-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(31, 41, 55, 0.72);
  transition: transform 0.2s ease, background 0.2s ease;
}

.related-card:hover {
  transform: translateY(-5px);
  background: rgba(127, 29, 29, 0.72);
}

.related-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.related-card span,
.related-card em {
  display: block;
  padding: 0 14px;
}

.related-card span {
  padding-top: 12px;
  color: #fff;
  font-weight: 900;
}

.related-card em {
  padding-bottom: 14px;
  color: #fca5a5;
  font-size: 13px;
  font-style: normal;
}

.site-footer {
  padding: 52px 0 28px;
  color: #9ca3af;
  background: #030712;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #6b7280;
  font-size: 14px;
}

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

  .menu-toggle {
    display: block;
  }

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

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

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

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

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

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

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding: 78px 0 160px;
  }

  .hero-actions,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero-search input,
  .hero-search button {
    width: 100%;
    height: 44px;
  }

  .movie-grid,
  .movie-grid-dense,
  .ranking-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    min-height: auto;
    font-size: 15px;
  }

  .card-body p {
    min-height: auto;
    font-size: 13px;
  }

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

  .category-covers img {
    height: 140px;
  }

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

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .poster-card {
    width: min(280px, 100%);
  }

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

  .detail-content article {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .movie-grid-dense,
  .ranking-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    min-width: 0;
  }

  .brand-text em {
    display: none;
  }
}
