:root {
  --red-900: #7f1d1d;
  --red-800: #991b1b;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
  color: var(--slate-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--red-900), var(--red-700));
  box-shadow: 0 10px 30px rgba(127, 29, 29, 0.25);
}

.header-inner {
  width: min(1280px, 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;
  color: var(--white);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--white);
  color: var(--red-800);
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.04em;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #fee2e2;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
}

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

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.66), rgba(15, 23, 42, 0.18)), linear-gradient(0deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.05) 45%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1280px) / 2));
  top: 50%;
  width: min(700px, calc(100% - 48px));
  transform: translateY(-50%);
  color: var(--white);
}

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: var(--red-600);
  color: var(--white);
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

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

.hero p {
  margin: 0 0 24px;
  max-width: 650px;
  color: #d1d5db;
  font-size: 19px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.detail-meta span,
.movie-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fee2e2;
  padding: 6px 10px;
  font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.line-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  min-height: 46px;
  padding: 0 24px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: var(--red-600);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.28);
}

.primary-btn:hover {
  background: var(--red-700);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.32);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  backdrop-filter: blur(10px);
}

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

.line-btn {
  border: 1px solid #fecaca;
  color: var(--red-700);
  background: #fff7f7;
}

.line-btn:hover {
  background: #fee2e2;
  transform: translateY(-2px);
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100% - 1280px) / 2));
  bottom: 42px;
  display: flex;
  gap: 10px;
}

.hero-arrow {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 32px;
  line-height: 1;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 52px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

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

.hero-dot.is-active {
  width: 28px;
  background: var(--white);
}

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

.section-lift {
  margin-top: -42px;
  position: relative;
  z-index: 5;
}

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

.section-head.compact {
  margin-bottom: 18px;
}

.section-head h2,
.page-hero h1,
.detail-info h1 {
  margin: 12px 0 0;
  color: var(--slate-900);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.more-link {
  color: var(--red-700);
  font-weight: 900;
}

.more-link:hover {
  color: var(--red-900);
}

.category-grid,
.category-card-grid {
  display: grid;
  gap: 18px;
}

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

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

.category-tile,
.category-card,
.content-card,
.player-card,
.rank-panel,
.spot-panel {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.category-tile {
  min-height: 140px;
  padding: 22px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.18), transparent 70%);
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.2);
}

.category-tile span,
.category-card h2 {
  color: var(--slate-900);
  font-size: 22px;
  font-weight: 900;
}

.category-tile p,
.category-card p,
.spot-panel p,
.content-card p,
.player-copy p {
  color: var(--slate-600);
  line-height: 1.8;
}

.category-card {
  padding: 26px;
}

.category-card h2 {
  margin: 0 0 12px;
}

.category-card ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  padding: 0;
  margin: 18px 0 22px;
  list-style: none;
}

.category-card li a {
  color: var(--slate-700);
  font-weight: 700;
}

.category-card li a:hover {
  color: var(--red-700);
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  padding: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.search-box span {
  color: var(--red-700);
  font-weight: 900;
}

.search-box input,
.filter-select {
  height: 44px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: var(--white);
  color: var(--slate-900);
  outline: none;
}

.search-box input {
  width: 100%;
  padding: 0 14px;
}

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-select {
  padding: 0 12px;
}

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

.dense-grid {
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.poster img,
.ranking-poster img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.92);
  color: var(--white);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--red-700);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--red-700);
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta span {
  background: #fee2e2;
  color: var(--red-800);
}

.split-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.rank-panel,
.spot-panel {
  padding: 26px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 11px 12px;
  background: #fff7f7;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: #fee2e2;
  transform: translateX(3px);
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--red-600);
  color: var(--white);
  font-weight: 900;
}

.rank-title {
  font-weight: 900;
  color: var(--slate-900);
}

.rank-info {
  color: var(--slate-500);
  font-size: 13px;
}

.spot-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #fff1f2, #ffffff);
}

.spot-panel h2 {
  margin: 16px 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--slate-950), var(--red-900));
  color: var(--white);
}

.small-hero {
  padding: 88px max(24px, calc((100% - 1280px) / 2));
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(36px, 6vw, 64px);
}

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

.pill-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill-links a {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 800;
}

.pill-links a:hover {
  background: rgba(255, 255, 255, 0.24);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 18px;
  background: var(--white);
  padding: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.ranking-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.ranking-topline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ranking-topline h2 {
  margin: 0;
  font-size: 20px;
}

.ranking-main p {
  margin: 8px 0 12px;
  color: var(--slate-600);
  line-height: 1.7;
}

.detail-hero {
  min-height: 620px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.24;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px);
  transform: scale(1.08);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(127, 29, 29, 0.78));
}

.detail-wrap {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 34px;
  color: #fecaca;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--white);
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 40px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: linear-gradient(135deg, #111827, #7f1d1d);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.detail-info h1 {
  color: var(--white);
  font-size: clamp(40px, 6vw, 72px);
}

.lead-text {
  max-width: 880px;
  margin: 20px 0 22px;
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta span {
  background: rgba(255, 255, 255, 0.14);
  color: #fee2e2;
}

.detail-info .primary-btn {
  margin-top: 30px;
}

.detail-section {
  margin-top: -82px;
  position: relative;
  z-index: 3;
}

.player-card {
  overflow: hidden;
  padding: 0;
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000000;
  cursor: pointer;
}

.player-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(127, 29, 29, 0.15), rgba(0, 0, 0, 0.48));
  color: var(--red-700);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-start {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--red-700);
  font-size: 36px;
  line-height: 1;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.player-copy {
  padding: 22px 26px 26px;
}

.player-copy h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.prose-section {
  padding-top: 0;
}

.content-card {
  padding: 30px;
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.content-card h2 + p {
  margin-bottom: 24px;
}

.related-grid {
  grid-template-columns: repeat(4, 1fr);
}

.site-footer {
  margin-top: 40px;
  background: var(--slate-950);
  color: #cbd5e1;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.footer-inner h2 {
  margin: 0 0 12px;
  color: var(--white);
}

.footer-inner p {
  margin: 0;
  line-height: 1.8;
}

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

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  text-align: center;
  color: #94a3b8;
}

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

@media (max-width: 1180px) {
  .movie-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (max-width: 860px) {
  .header-inner {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 0 4px;
  }

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

  .nav-link {
    width: 100%;
    border-radius: 12px;
  }

  .hero {
    height: 680px;
  }

  .hero-content {
    top: 48%;
  }

  .hero-controls {
    right: 24px;
    bottom: 28px;
  }

  .hero-dots {
    left: 24px;
    bottom: 44px;
    transform: none;
  }

  .section-head,
  .filter-panel,
  .split-section,
  .footer-inner,
  .detail-layout {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .filter-selects,
  .search-box {
    width: 100%;
  }

  .filter-select,
  .search-box input {
    width: 100%;
  }

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

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

  .ranking-item {
    grid-template-columns: 72px 1fr;
  }

  .ranking-item .line-btn {
    grid-column: 1 / -1;
  }

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

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

@media (max-width: 520px) {
  .brand-text strong {
    font-size: 18px;
  }

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

  .hero p,
  .lead-text {
    font-size: 16px;
  }

  .movie-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 38px 1fr;
  }

  .rank-info {
    grid-column: 2;
  }

  .small-hero {
    padding-top: 62px;
    padding-bottom: 62px;
  }
}
