:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --red: #dc2626;
  --red-dark: #991b1b;
  --gold: #f59e0b;
  --soft-red: #fef2f2;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 38, 38, 0.12);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red-dark);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  font-size: 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.28);
}

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

.main-nav a {
  padding: 8px 12px;
  color: #374151;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red-dark);
  background: var(--soft-red);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 28vw);
  padding: 5px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #ffffff;
}

.top-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 8px 12px;
  color: #111827;
  background: transparent;
}

.top-search button,
.primary-button,
.secondary-button,
.filter-bar button {
  border: 0;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 14px 26px rgba(220, 38, 38, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button {
  padding: 8px 14px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
}

.secondary-button {
  color: var(--red-dark);
  background: #ffffff;
  box-shadow: none;
}

.top-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.filter-bar button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(220, 38, 38, 0.32);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--red-dark);
  background: transparent;
  font-size: 28px;
}

.feature-stage {
  position: relative;
  overflow: hidden;
  min-height: 670px;
  color: #ffffff;
  background: radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.24), transparent 32%), linear-gradient(135deg, #111827 0%, #1f2937 45%, #7f1d1d 100%);
}

.feature-slide {
  display: none;
  min-height: 670px;
  padding: 72px 0 82px;
}

.feature-slide.is-active {
  display: block;
}

.feature-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.26;
  transform: scale(1.03);
}

.feature-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.68), rgba(127, 29, 29, 0.34));
}

.feature-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 50px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 13px;
  color: #fde68a;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid rgba(253, 230, 138, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.feature-copy h1,
.feature-copy h2 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.feature-copy p {
  max-width: 760px;
  margin: 0 0 26px;
  color: #e5e7eb;
  font-size: 18px;
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.feature-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.feature-dots {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 10px;
  margin-top: -54px;
  padding-bottom: 30px;
}

.feature-dots button {
  width: 42px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.feature-dots button.is-active {
  background: #ffffff;
}

.section-block {
  padding: 62px 0;
}

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

.section-title h1,
.section-title h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-title p,
.lead-text {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

.section-title a {
  color: var(--red-dark);
  font-weight: 900;
}

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

.category-card {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: #ffffff;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #b91c1c, #7f1d1d 70%, #451a03);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(127, 29, 29, 0.28);
}

.category-card strong {
  font-size: 24px;
  line-height: 1.1;
}

.category-card span {
  color: #fee2e2;
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #7f1d1d);
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.05;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.92);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

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

.movie-meta {
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

.movie-card p {
  display: -webkit-box;
  min-height: 66px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  padding: 4px 9px;
  color: #991b1b;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: #fee2e2;
}

.rank-panel {
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.rank-panel .section-title h2,
.rank-panel .section-title p,
.rank-panel .section-title a {
  color: #ffffff;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 74px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.rank-index {
  color: #fde68a;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

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

.rank-item strong {
  display: block;
  font-size: 18px;
}

.rank-item span {
  color: #e5e7eb;
  font-size: 14px;
}

.page-hero {
  padding: 64px 0;
  color: #ffffff;
  background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.22), transparent 32%), linear-gradient(135deg, #111827, #7f1d1d);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

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

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

.overview-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.overview-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: #111827;
}

.overview-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
}

.overview-body {
  padding: 22px;
}

.overview-body h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.overview-body p {
  margin: 0;
  color: var(--muted);
}

.filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid rgba(220, 38, 38, 0.12);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  outline: 0;
  padding: 12px 14px;
  color: #111827;
  background: #f9fafb;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #fca5a5;
  box-shadow: 0 0 0 4px #fee2e2;
}

.filter-bar button {
  padding: 0 20px;
}

.empty-state {
  display: none;
  padding: 48px;
  color: var(--muted);
  text-align: center;
  border-radius: var(--radius);
  background: #ffffff;
}

.empty-state.is-visible {
  display: block;
}

.detail-cover {
  min-height: 530px;
  padding: 56px 0;
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  color: #fee2e2;
  font-weight: 800;
}

.detail-head {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.detail-poster {
  width: 280px;
  aspect-ratio: 3 / 4.12;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.detail-info h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-info p {
  max-width: 820px;
  margin: 0 0 22px;
  color: #f3f4f6;
  font-size: 18px;
}

.watch-section {
  margin-top: -72px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 8px solid #ffffff;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #ffffff;
  background: #111827;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.44;
}

.player-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.82), rgba(127, 29, 29, 0.58));
}

.player-glass {
  position: relative;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 30px 38px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.player-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  padding-left: 5px;
  color: #ffffff;
  font-size: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.42);
}

.player-title {
  font-size: 22px;
  font-weight: 900;
}

.detail-content {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
  padding: 44px 0 0;
}

.story-card {
  padding: 28px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

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

.accent-card {
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

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

.small-movie {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.small-movie img {
  width: 54px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

.small-movie strong,
.small-movie em {
  display: block;
}

.small-movie strong {
  color: #ffffff;
  line-height: 1.25;
}

.small-movie em {
  margin-top: 4px;
  color: #e5e7eb;
  font-size: 12px;
  font-style: normal;
}

.site-footer {
  margin-top: 72px;
  color: #e5e7eb;
  background: linear-gradient(135deg, #111827, #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  margin: 14px 0 0;
  color: #cbd5e1;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #ffffff;
}

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

@media (max-width: 980px) {
  .main-nav,
  .top-search {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav.is-open {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: grid;
    gap: 6px;
    padding: 18px 24px;
    background: #ffffff;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.15);
  }

  .feature-inner,
  .detail-head,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-poster,
  .detail-poster {
    width: min(320px, 100%);
    margin: 0 auto;
    transform: none;
  }

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

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

  .filter-bar input,
  .filter-bar button {
    grid-column: 1 / -1;
  }

  .rank-list {
    grid-template-columns: 1fr;
  }
}

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

  .feature-stage,
  .feature-slide {
    min-height: auto;
  }

  .feature-slide {
    padding: 46px 0 78px;
  }

  .feature-copy p,
  .page-hero p,
  .detail-info p {
    font-size: 16px;
  }

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

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

  .rank-item {
    grid-template-columns: 44px 64px 1fr;
  }

  .rank-item img {
    width: 64px;
    height: 84px;
  }

  .detail-cover {
    padding: 36px 0 96px;
  }

  .watch-section {
    margin-top: -86px;
  }

  .video-shell {
    border-width: 4px;
    border-radius: 20px;
  }

  .player-glass {
    padding: 22px;
  }

  .player-icon {
    width: 58px;
    height: 58px;
    font-size: 24px;
  }
}
