html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f8fafc;
  color: #0f172a;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

.top-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a, #1e293b 52%, #0f172a);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
}

.nav-inner {
  width: min(1220px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #dc2626;
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.36);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  padding: 10px 15px;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 15px;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #ffffff;
  background: #dc2626;
}

.nav-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.big-search input {
  min-width: 210px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 11px 14px;
}

.nav-search input::placeholder,
.mobile-search input::placeholder,
.big-search input::placeholder {
  color: #cbd5e1;
}

.nav-search button,
.mobile-search button,
.big-search button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: #dc2626;
  border-radius: 999px;
  padding: 11px 17px;
  font-weight: 700;
}

.menu-button {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.hero-shell {
  background: #0f172a;
  color: #ffffff;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(270px, 0.42fr);
  align-items: center;
  gap: 42px;
  width: 100%;
  padding: 76px max(32px, calc((100vw - 1220px) / 2)) 96px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.58s ease, transform 0.72s ease;
}

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

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fecaca;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 0;
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(36px, 5.8vw, 78px);
}

.hero-copy h2 {
  color: #fca5a5;
  font-size: clamp(28px, 3.4vw, 48px);
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: #dc2626;
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.32);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #b91c1c;
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(14px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.20);
}

.hero-poster {
  position: relative;
  display: block;
  width: min(340px, 100%);
  justify-self: end;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, #1f2937, #7f1d1d);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.62);
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: max(32px, calc((100vw - 1220px) / 2));
  bottom: 42px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-dot {
  width: 38px;
  height: 5px;
  border: 0;
  cursor: pointer;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.26);
}

.hero-dot.active {
  background: #ef4444;
}

.quick-cats {
  width: min(1220px, calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quick-cats a,
.category-tile,
.category-card-wide {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  transition: 0.24s ease;
}

.quick-cats a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  padding: 18px 20px;
  font-weight: 800;
}

.quick-cats a:hover,
.category-tile:hover,
.category-card-wide:hover,
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.hero-strip {
  width: min(1220px, calc(100% - 32px));
  margin: 18px auto 0;
  padding-bottom: 52px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

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

.dark-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 74px max(32px, calc((100vw - 1220px) / 2));
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

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

.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.05em;
}

.section-head a,
.text-link {
  color: #dc2626;
  font-weight: 800;
}

.dark-section .section-head a {
  color: #fecaca;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  transition: 0.24s ease;
}

.dark-section .movie-card,
.hero-strip .movie-card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(14px);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, #1e293b, #991b1b);
}

.poster-img,
.rank-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.32s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.88));
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: #ffffff;
  background: #dc2626;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 14px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
}

.dark-section .card-meta,
.hero-strip .card-meta {
  color: #cbd5e1;
}

.card-body h3 {
  margin: 8px 0 7px;
  font-size: 17px;
  line-height: 1.35;
}

.card-body p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}

.dark-section .card-body p,
.hero-strip .card-body p {
  color: #dbeafe;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span,
.detail-tags a {
  color: #991b1b;
  background: #fee2e2;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
}

.dark-section .tag-row span,
.hero-tags span,
.hero-strip .tag-row span {
  color: #ffffff;
  background: rgba(220, 38, 38, 0.56);
}

.mini {
  margin-top: 6px;
}

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

.category-tile {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: #0f172a;
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
}

.category-tile span,
.category-card-title span {
  font-size: 30px;
}

.category-tile strong {
  margin-top: 12px;
  font-size: 19px;
}

.category-tile em {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 44px 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  color: inherit;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: 0.22s ease;
}

.ranking-item:hover {
  background: rgba(255, 255, 255, 0.18);
}

.rank-no {
  display: inline-flex;
  justify-content: center;
  color: #fecaca;
  font-size: 22px;
  font-weight: 900;
}

.rank-thumb {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, #1e293b, #991b1b);
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  line-height: 1.35;
}

.rank-info em {
  margin-top: 5px;
  color: #cbd5e1;
  font-size: 12px;
  font-style: normal;
}

.ranking-list-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ranking-list-page .ranking-item {
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.ranking-list-page .rank-info em {
  color: #64748b;
}

.page-hero {
  min-height: 380px;
  display: flex;
  align-items: center;
  color: #ffffff;
  padding: 74px max(32px, calc((100vw - 1220px) / 2));
  background: linear-gradient(120deg, #0f172a, #7f1d1d);
  background-size: cover;
  background-position: center;
}

.small-hero {
  min-height: 320px;
}

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

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

.category-card-wide {
  padding: 24px;
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
}

.category-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
}

.category-card-wide p {
  color: #64748b;
  line-height: 1.7;
}

.category-mini-links {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.category-mini-links a {
  color: #334155;
  font-size: 14px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-bar button {
  border: 0;
  cursor: pointer;
  color: #334155;
  background: #ffffff;
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.filter-bar button.active,
.filter-bar button:hover {
  color: #ffffff;
  background: #dc2626;
}

.big-search {
  max-width: 660px;
  margin-top: 26px;
}

.big-search input {
  flex: 1;
  min-width: 0;
  height: 52px;
}

.big-search button {
  height: 52px;
  padding-inline: 26px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr);
  align-items: center;
  gap: 42px;
  padding: 56px max(32px, calc((100vw - 1220px) / 2));
  color: #ffffff;
  background: radial-gradient(circle at 18% 10%, rgba(220, 38, 38, 0.36), transparent 34%), linear-gradient(135deg, #0f172a, #111827 56%, #7f1d1d);
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 16 / 9;
  background: #000000;
  box-shadow: 0 32px 85px rgba(0, 0, 0, 0.36);
}

.player-box video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-box video {
  z-index: 1;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-button {
  width: 86px;
  height: 86px;
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  color: #ffffff;
  background: #dc2626;
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.42);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.detail-copy h1 {
  font-size: clamp(34px, 4.4vw, 62px);
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.info-list div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.info-list dt {
  color: #cbd5e1;
  font-size: 12px;
}

.info-list dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.detail-section {
  padding-top: 54px;
  padding-bottom: 54px;
}

.content-panel {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.content-panel h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.content-panel h2 + p {
  margin-bottom: 28px;
}

.content-panel p {
  color: #334155;
  line-height: 1.95;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
  padding: 46px max(32px, calc((100vw - 1220px) / 2)) 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}

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

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

.footer-links a {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 12px;
}

.footer-copy {
  margin-top: 28px;
  color: #64748b;
  font-size: 13px;
}

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

  .hero-slide,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    justify-self: start;
    width: min(260px, 62vw);
  }

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

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

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

  .nav-links {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .mobile-panel.open {
    display: grid;
    gap: 10px;
  }

  .mobile-search input {
    min-width: 0;
    flex: 1;
  }

  .hero-slider {
    min-height: 780px;
  }

  .hero-slide {
    padding-top: 44px;
    padding-bottom: 84px;
  }

  .quick-cats {
    grid-template-columns: repeat(2, 1fr);
  }

  .movie-grid,
  .compact-grid,
  .hero-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-grid,
  .ranking-list-page,
  .footer-inner,
  .category-grid,
  .category-wide-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

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

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

  .detail-hero {
    padding-top: 34px;
  }

  .content-panel {
    padding: 22px;
  }
}
