:root {
  --bg: #fff7ed;
  --bg-soft: #fff1f2;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(248, 113, 113, 0.18);
  --red: #ef4444;
  --orange: #f97316;
  --pink: #ec4899;
  --shadow: 0 18px 45px rgba(127, 29, 29, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 5%, rgba(236, 72, 153, 0.16), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(249, 115, 22, 0.14), transparent 28%),
    linear-gradient(135deg, #fff7ed 0%, #fff1f2 52%, #fff7ed 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(127, 29, 29, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--pink));
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a,
.nav-dropdown > button {
  padding: 10px 0;
  color: #374151;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.nav-links a:hover,
.nav-dropdown > button:hover {
  color: var(--red);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: 42px;
  width: 320px;
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  display: grid;
}

.dropdown-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ed;
}

.nav-toggle {
  display: none;
  border: 0;
  background: #fff7ed;
  color: var(--red);
  border-radius: 12px;
  font-size: 24px;
  padding: 8px 12px;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #ffffff;
  background: #7f1d1d;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 900ms ease, transform 1200ms ease;
  background-size: cover;
  background-position: center;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.05)),
    linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(249, 115, 22, 0.18), rgba(236, 72, 153, 0.24));
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  padding: 80px 0;
  animation: fadeUp 780ms ease both;
}

.hero-kicker,
.section-heading span,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b91c1c;
  background: linear-gradient(90deg, rgba(254, 226, 226, 0.95), rgba(255, 237, 213, 0.95));
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero .hero-kicker {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 16px;
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 32px rgba(127, 29, 29, 0.18);
}

.btn-primary {
  color: var(--red);
  background: #ffffff;
}

.btn-gradient {
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--pink));
}

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

.hero-panel {
  position: absolute;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 44px;
  z-index: 3;
  width: min(410px, calc(100% - 32px));
  padding: 18px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.26);
}

.hero-panel strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.hero-thumbs a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  opacity: 0.86;
}

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

.page-hero {
  padding: 72px 0 44px;
}

.page-hero-card {
  padding: 42px;
  color: #ffffff;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(120deg, var(--red), var(--orange), var(--pink));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 12px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 780px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.section {
  padding: 58px 0;
}

.section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.section-heading h2 {
  margin: 16px 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}

.section-heading p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 12px 30px rgba(127, 29, 29, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

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

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

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

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.86);
  transform: translate(-50%, -50%) scale(0.78);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

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

.year-badge,
.region-badge {
  position: absolute;
  top: 14px;
  z-index: 2;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  padding: 6px 10px;
}

.year-badge {
  left: 14px;
  background: rgba(17, 24, 39, 0.76);
}

.region-badge {
  right: 14px;
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

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

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.tag-row span {
  color: #b91c1c;
  background: #fff1f2;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px 160px;
  gap: 12px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(127, 29, 29, 0.07);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 14px;
  outline: none;
  background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

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

.category-card {
  min-height: 148px;
  padding: 22px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--pink));
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
}

.category-card span {
  opacity: 0.88;
  line-height: 1.7;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 64px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.07);
}

.rank-item:hover {
  color: var(--red);
}

.rank-item img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-no {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.rank-item strong,
.rank-item small {
  display: block;
}

.rank-item small {
  margin-top: 7px;
  color: var(--muted);
}

.detail-hero {
  padding: 48px 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.25), transparent 26%),
    linear-gradient(135deg, #1f2937, #7f1d1d 58%, #be123c);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 34px;
  color: #ffffff;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
}

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

.detail-info h1 {
  margin: 12px 0 18px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.meta-line span,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
}

.detail-info p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.player-section {
  padding: 52px 0 28px;
}

.player-shell {
  overflow: hidden;
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 26px;
  background: #111827;
  box-shadow: 0 22px 55px rgba(17, 24, 39, 0.18);
}

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

.video-wrap video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
}

.player-button {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(239, 68, 68, 0.34);
}

.player-note {
  padding: 18px 22px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  padding: 34px 0 58px;
}

.article-card,
.side-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(127, 29, 29, 0.08);
}

.article-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.article-card p {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.95;
}

.archive-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(127, 29, 29, 0.08);
}

.archive-table th,
.archive-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.archive-table th {
  color: #991b1b;
  background: #fff1f2;
}

.archive-table a:hover {
  color: var(--red);
}

.site-footer {
  margin-top: 42px;
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.site-footer a:hover {
  color: #fed7aa;
}

.no-results {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(239, 68, 68, 0.3);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 48px;
  height: 48px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  cursor: pointer;
  box-shadow: var(--shadow);
}

.back-top.is-visible {
  display: grid;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .rank-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

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

  .dropdown-panel {
    position: static;
    width: 100%;
    box-shadow: none;
  }

  .hero,
  .hero-inner {
    min-height: 620px;
  }

  .hero-copy {
    padding: 56px 0 160px;
  }

  .hero-panel {
    left: 16px;
    right: 16px;
    bottom: 20px;
    width: auto;
  }

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

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

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

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

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

@media (max-width: 480px) {
  .container,
  .nav-shell {
    width: min(100% - 22px, 1180px);
  }

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

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

  .page-hero-card,
  .article-card,
  .side-card {
    padding: 22px;
  }

  .rank-item {
    grid-template-columns: auto 54px 1fr;
  }

  .rank-item img {
    width: 54px;
    height: 72px;
  }
}
