:root {
  --bg: #0b0b10;
  --panel: #12121a;
  --panel-soft: #181822;
  --text: #f9fafb;
  --muted: #a7a7b4;
  --line: rgba(255, 255, 255, 0.1);
  --red: #dc2626;
  --red-dark: #991b1b;
  --red-soft: rgba(220, 38, 38, 0.18);
  --gold: #facc15;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.2), transparent 34rem),
    linear-gradient(180deg, #08080d 0%, #111119 42%, #f7f7f8 42%, #f7f7f8 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 13, 0.78);
  backdrop-filter: blur(18px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.site-logo::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--red), #ef4444 58%, #f97316);
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.42);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  padding: 9px 15px;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  background: rgba(220, 38, 38, 0.24);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 99px;
}

.hero-shell {
  position: relative;
  width: min(1240px, calc(100% - 24px));
  margin: 18px auto 54px;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background: #050509;
  box-shadow: var(--shadow);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.58fr);
  align-items: center;
  gap: 36px;
  padding: 72px min(7vw, 72px) 120px;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(5, 5, 9, 0.96) 0%, rgba(5, 5, 9, 0.72) 42%, rgba(5, 5, 9, 0.32) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
  transform: scale(1.06);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.22), transparent 28rem),
    linear-gradient(0deg, rgba(5, 5, 9, 0.86), transparent 46%);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

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

.hero-content h1,
.hero-content h2 {
  max-width: 780px;
  margin: 16px 0 20px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.08em;
  font-weight: 950;
}

.hero-content p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), #ef4444);
  box-shadow: 0 14px 32px rgba(220, 38, 38, 0.36);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost.dark {
  color: #17171d;
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.82);
}

.hero-poster {
  justify-self: end;
  width: min(360px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-control-row {
  position: absolute;
  left: min(7vw, 72px);
  right: min(7vw, 72px);
  bottom: 30px;
  z-index: 3;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.hero-dots {
  display: flex;
  gap: 9px;
}

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

.hero-dot.is-active {
  background: var(--red);
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 10px;
  width: min(560px, 52%);
}

.hero-thumb {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.hero-thumb img {
  width: 48px;
  height: 62px;
  border-radius: 11px;
  object-fit: cover;
}

.hero-thumb span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  font-weight: 800;
}

main {
  color: #17171d;
}

.page-main {
  padding: 42px 0 70px;
}

section.container {
  margin-bottom: 58px;
}

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

.section-head h2,
.page-title-block h1,
.ranking-panel h2,
.player-section h2,
.text-panel h2 {
  margin: 0;
  color: #14141a;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-head p,
.page-title-block p {
  max-width: 720px;
  margin: 8px 0 0;
  color: #62626f;
}

.section-more,
.panel-head a {
  color: var(--red);
  font-weight: 900;
}

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

.category-pill {
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(220, 38, 38, 0.12);
  border-radius: 22px;
  background: linear-gradient(135deg, #fff, #fff5f5);
  box-shadow: 0 12px 28px rgba(15, 15, 20, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-pill:hover,
.movie-card:hover,
.ranking-card:hover,
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(15, 15, 20, 0.12);
}

.category-pill strong,
.category-pill span {
  display: block;
}

.category-pill strong {
  color: #16161d;
  font-size: 20px;
  font-weight: 950;
}

.category-pill span {
  margin-top: 8px;
  color: #737381;
  font-size: 14px;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-bottom: 20px;
}

.filter-input,
.filter-select {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(15, 15, 20, 0.1);
  border-radius: 18px;
  color: #17171d;
  background: #fff;
  outline: none;
  padding: 0 16px;
  box-shadow: 0 12px 30px rgba(15, 15, 20, 0.05);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(15, 15, 20, 0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 15, 20, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.score-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #1a1300;
  background: var(--gold);
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

.inline-score {
  position: static;
  display: inline-flex;
}

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

.movie-meta,
.detail-meta-grid,
.ranking-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #777786;
  font-size: 13px;
}

.movie-card h3,
.ranking-card h2 {
  margin: 9px 0 8px;
  color: #14141a;
  line-height: 1.25;
  font-size: 18px;
  font-weight: 950;
}

.movie-card p,
.ranking-card p,
.text-panel p {
  margin: 0;
  color: #666674;
}

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

.movie-card .tag-row span,
.detail-tags span,
.ranking-content .tag-row span {
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.12);
  background: rgba(220, 38, 38, 0.08);
  font-size: 12px;
}

.movie-card-compact h3 {
  font-size: 16px;
}

.movie-card-compact .movie-card-body p {
  display: none;
}

.ranking-panel {
  position: sticky;
  top: 96px;
  border: 1px solid rgba(15, 15, 20, 0.08);
  border-radius: 26px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 15, 20, 0.07);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.panel-head h2 {
  font-size: 22px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px;
  border-radius: 14px;
  background: #f8f8fa;
}

.rank-row:hover {
  background: #fff1f1;
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-weight: 950;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1b1b22;
  font-weight: 800;
}

.rank-score {
  color: #b45309;
  font-weight: 950;
}

.page-title-block {
  padding: 46px;
  border: 1px solid rgba(15, 15, 20, 0.08);
  border-radius: 30px;
  background: linear-gradient(135deg, #fff, #fff4f4);
  box-shadow: 0 18px 50px rgba(15, 15, 20, 0.08);
}

.page-title-block h1 {
  margin-top: 8px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
}

.page-title-block .eyebrow {
  color: var(--red);
}

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

.category-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: 28px;
  background: #101015;
  box-shadow: 0 18px 48px rgba(15, 15, 20, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(8, 8, 13, 0.94), rgba(8, 8, 13, 0.55)),
    var(--category-image);
  background-size: cover;
  background-position: center;
}

.category-card-body {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 34px;
  color: #fff;
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 950;
}

.category-card p {
  color: rgba(255, 255, 255, 0.78);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(15, 15, 20, 0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 15, 20, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-poster img {
  width: 120px;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  object-fit: cover;
}

.ranking-content {
  align-self: center;
}

.ranking-topline {
  align-items: center;
}

.detail-main {
  color: #17171d;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #70707c;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--red);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 30px;
  border: 1px solid rgba(15, 15, 20, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(220, 38, 38, 0.14), transparent 26rem),
    #fff;
  box-shadow: 0 18px 50px rgba(15, 15, 20, 0.08);
}

.detail-poster img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: 0 20px 44px rgba(15, 15, 20, 0.16);
}

.detail-info h1 {
  margin: 12px 0 16px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1;
  letter-spacing: -0.07em;
  color: #14141a;
}

.detail-line {
  max-width: 780px;
  margin: 0 0 20px;
  color: #5f5f6c;
  font-size: 18px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}

.detail-meta-grid span {
  padding: 10px 12px;
  border-radius: 14px;
  background: #f6f6f8;
}

.player-section {
  color: #fff;
}

.player-section h2 {
  margin-bottom: 18px;
  color: #14141a;
  font-size: 34px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #050509;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050509;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #fff;
  background: #050509;
  cursor: pointer;
  overflow: hidden;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: blur(1px) saturate(1.1);
  transform: scale(1.04);
}

.play-trigger {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #ef4444);
  box-shadow: 0 18px 44px rgba(220, 38, 38, 0.42);
  font-size: 34px;
  line-height: 1;
  padding-left: 5px;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.text-panel {
  padding: 26px;
  border: 1px solid rgba(15, 15, 20, 0.08);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 15, 20, 0.06);
}

.text-panel h2 {
  margin-bottom: 12px;
  font-size: 28px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.7);
  background: #08080d;
  border-top: 1px solid var(--line);
}

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

.footer-logo {
  color: #fff;
}

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

[data-card].is-hidden {
  display: none;
}

@media (max-width: 1080px) {
  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .two-column-section {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

  .hero-thumbs {
    display: none;
  }

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

  .hero-poster {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(220, 38, 38, 0.18), transparent 24rem),
      linear-gradient(180deg, #08080d 0%, #111119 28%, #f7f7f8 28%, #f7f7f8 100%);
  }

  .header-inner {
    height: 64px;
  }

  .site-logo {
    font-size: 18px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(8, 8, 13, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    text-align: center;
  }

  .hero-shell {
    margin-top: 10px;
    border-radius: 24px;
  }

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

  .hero-slide {
    padding: 48px 24px 92px;
  }

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

  .hero-control-row {
    left: 24px;
    right: 24px;
  }

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

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

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

  .page-title-block {
    padding: 28px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .detail-poster {
    max-width: 260px;
  }

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

  .ranking-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .ranking-poster img {
    width: 88px;
  }
}

@media (max-width: 520px) {
  .category-pill-grid,
  .movie-grid,
  .compact-grid,
  .category-overview-grid,
  .content-section {
    grid-template-columns: 1fr;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 42px;
  }

  .hero-tags span,
  .tag-row span {
    font-size: 12px;
  }

  .play-trigger {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
