* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(229, 231, 235, .9);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 18px 35px rgba(220, 38, 38, .22);
}

.brand-text {
  font-size: 25px;
  background: linear-gradient(90deg, #dc2626, #f97316);
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #4b5563;
  font-weight: 700;
  transition: color .2s ease;
}

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

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

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  outline: none;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.header-search input {
  width: 230px;
  padding: 11px 16px;
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #dc2626, #f97316);
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .12);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 30px;
  color: #374151;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 16px 24px 22px;
  border-top: 1px solid #e5e7eb;
}

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

main {
  min-height: 70vh;
}

.home-hero {
  max-width: 1420px;
  margin: 0 auto;
  padding: 28px 24px 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 24px;
}

.hero-stage {
  position: relative;
  min-height: 620px;
  border-radius: 34px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .22);
}

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

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

.hero-shade,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 22%, rgba(249, 115, 22, .46), transparent 34%),
    linear-gradient(90deg, rgba(3, 7, 18, .94) 0%, rgba(3, 7, 18, .72) 42%, rgba(3, 7, 18, .18) 100%),
    linear-gradient(0deg, rgba(3, 7, 18, .82), rgba(3, 7, 18, .05));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding: 64px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #fed7aa;
}

.hero-copy h1,
.detail-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: -.06em;
}

.hero-line,
.detail-line,
.page-hero p {
  max-width: 780px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 19px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #991b1b;
  background: #fee2e2;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .24);
  backdrop-filter: blur(10px);
}

.hero-actions,
.detail-copy .primary-button {
  margin-top: 28px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 18px 34px rgba(220, 38, 38, .24);
}

.ghost-button {
  margin-left: 10px;
  color: #fff;
  background: rgba(255, 255, 255, .17);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.category-tile:hover {
  transform: translateY(-3px);
}

.hero-dots {
  position: absolute;
  left: 64px;
  bottom: 30px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 26px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, .34);
  transition: width .2s ease, background .2s ease;
}

.hero-dot.is-active {
  width: 46px;
  background: #fff;
}

.hero-panel,
.ranking-box,
.story-card,
.category-tile,
.filter-bar {
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .07);
}

.hero-panel {
  padding: 28px;
}

.hero-panel h2,
.ranking-box h2,
.story-card h2,
.section-heading h2,
.category-text h2,
.page-hero h1 {
  color: #111827;
}

.hero-panel h2,
.ranking-box h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -.04em;
}

.hero-panel p {
  margin: 0 0 20px;
  color: #6b7280;
}

.hero-rank-list,
.full-list {
  display: grid;
  gap: 14px;
}

.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 24px;
}

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

.section-heading.center {
  display: block;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.05em;
}

.text-link {
  color: #dc2626;
  font-weight: 900;
}

.quick-entry {
  padding-top: 18px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.quick-links a {
  padding: 13px 18px;
  border-radius: 999px;
  color: #b91c1c;
  background: #fff;
  border: 1px solid #fecaca;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(248, 113, 113, .1);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
  transition: transform .22s ease, box-shadow .22s ease;
}

.movie-card:hover {
  box-shadow: 0 24px 52px rgba(15, 23, 42, .14);
}

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

.poster-link,
.poster,
.rank-thumb,
.category-visual,
.detail-cover {
  position: relative;
  display: block;
  background-color: #111827;
  background-size: cover;
  background-position: center;
}

.poster-link {
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.poster {
  width: 100%;
  height: 100%;
  transition: transform .35s ease;
}

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

.rating {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: #f59e0b;
  font-size: 12px;
  font-weight: 900;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(220, 38, 38, .88);
  transform: translate(-50%, -50%) scale(.84);
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
  padding: 16px;
}

.movie-card h3 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #dc2626;
}

.movie-meta,
.movie-line {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 14px;
}

.movie-line {
  color: #4b5563;
}

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

.tag-row.large span {
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.ranking-box {
  padding: 24px;
}

.rank-item {
  display: grid;
  grid-template-columns: 34px 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: background .2s ease;
}

.rank-item:hover {
  background: #fff1f2;
}

.rank-number {
  color: #dc2626;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-thumb {
  width: 58px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
}

.rank-info {
  min-width: 0;
}

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

.rank-info strong {
  color: #111827;
  font-size: 15px;
}

.rank-info em {
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
}

.rank-score {
  color: #f59e0b;
  font-weight: 900;
}

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

.category-tile {
  display: grid;
  grid-template-columns: 42% 1fr;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}

.category-visual {
  min-height: 240px;
}

.category-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .58), rgba(0, 0, 0, .05));
}

.category-visual span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.category-text {
  padding: 24px;
}

.category-text h2 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -.04em;
}

.category-text p {
  margin: 0;
  color: #6b7280;
}

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

.category-mini-links a {
  color: #dc2626;
  font-weight: 800;
}

.page-hero {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 72px 24px;
}

.compact-hero {
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(249, 115, 22, .45), transparent 32%),
    linear-gradient(135deg, #111827, #7f1d1d 58%, #ea580c);
}

.compact-hero h1,
.compact-hero .eyebrow {
  color: #fff;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
}

.crumbs a:hover {
  color: #fff;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 210px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  padding: 0 16px;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  background-color: #111827;
  background-size: cover;
  background-position: center;
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 70px 24px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 44px;
  align-items: end;
}

.detail-cover {
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}

.detail-copy {
  color: #fff;
}

.detail-copy .crumbs {
  margin: 0 0 18px;
}

.detail-meta {
  margin: 18px 0 0;
  color: #fed7aa;
  font-weight: 900;
}

.watch-section {
  padding-top: 42px;
}

.watch-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 28px 70px rgba(15, 23, 42, .28);
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: opacity .25s ease, visibility .25s ease;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(220, 38, 38, .32), transparent 26%),
    linear-gradient(0deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .2));
}

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

.player-play,
.player-cover strong {
  position: relative;
  z-index: 2;
}

.player-play {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 22px 48px rgba(220, 38, 38, .38);
  font-size: 34px;
}

.player-cover strong {
  font-size: clamp(22px, 4vw, 38px);
  letter-spacing: -.04em;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 24px;
}

.story-card {
  padding: 28px;
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.story-card p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.ranking-columns {
  display: grid;
  gap: 32px;
}

.site-footer {
  margin-top: 60px;
  background: #111827;
  color: #cbd5e1;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  gap: 16px;
}

.footer-brand {
  color: #fff;
  font-size: 24px;
}

.footer-inner p {
  max-width: 680px;
  margin: 0;
}

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

.footer-links a {
  color: #fed7aa;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .home-hero,
  .split-section,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: none;
  }

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

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

  .mobile-menu-button {
    display: block;
  }

  .home-hero {
    padding: 18px 14px 24px;
  }

  .hero-stage {
    min-height: 560px;
    border-radius: 24px;
  }

  .hero-copy {
    padding: 38px 26px 70px;
  }

  .hero-dots {
    left: 26px;
  }

  .movie-grid,
  .movie-grid.compact,
  .page-grid,
  .category-grid,
  .detail-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-inner {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .detail-cover {
    width: min(280px, 70vw);
  }

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

@media (max-width: 620px) {
  .header-inner {
    min-height: 64px;
    padding: 0 16px;
  }

  .brand-text {
    font-size: 21px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .section-wrap,
  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .movie-grid,
  .movie-grid.compact,
  .page-grid,
  .category-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

  .hero-copy h1,
  .detail-copy h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
  }

  .ghost-button {
    margin-left: 0;
  }

  .detail-hero,
  .detail-inner {
    min-height: auto;
  }

  .watch-player {
    border-radius: 20px;
  }
}
