:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #059669;
  --green-dark: #047857;
  --rose: #e11d48;
  --shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 25px 60px rgba(15, 23, 42, 0.24);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 18px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner,
.strip-inner,
.footer-inner,
.section,
.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: #1f2937;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #0ea5e9);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
  font-size: 15px;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
}

.menu-button {
  display: none;
  border: 0;
  background: #eef2ff;
  color: var(--blue);
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.category-strip {
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.strip-inner {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
}

.strip-inner a {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  color: #475569;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.strip-inner a:hover {
  color: var(--blue);
  background: #e0ecff;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(120deg, #0f172a, #334155);
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.42), rgba(15, 23, 42, 0.18));
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 70px;
  color: #ffffff;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #bfdbfe;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p {
  margin: 0;
  font-size: clamp(16px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.88);
}

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

.hero-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.86);
  font-size: 14px;
  font-weight: 700;
}

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

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

.btn.primary {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.26);
}

.btn.primary:hover {
  background: var(--green-dark);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

.section {
  padding: 64px 0;
}

.section-head {
  margin-bottom: 26px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  color: #1f2937;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.small-head h2 {
  font-size: 28px;
}

.category-showcase,
.feature-list,
.story-card,
.movie-info-card,
.player-panel {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.category-showcase {
  margin-top: 42px;
  padding: 34px;
}

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

.category-tile {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: 18px;
  background: #0f172a;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-tile:hover img {
  opacity: 0.9;
  transform: scale(1.08);
}

.category-tile span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.filter-box {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-box input,
.filter-box select {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  outline: none;
}

.filter-box input {
  width: min(320px, 52vw);
  padding: 0 16px;
}

.filter-box select {
  padding: 0 14px;
}

.filter-box input:focus,
.filter-box select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.full-filter {
  margin-bottom: 20px;
}

.full-filter input {
  width: 100%;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  font-weight: 900;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-overlay {
  opacity: 1;
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}

.year-badge {
  right: 12px;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.70);
}

.rank-badge {
  left: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rose);
}

.card-body {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #1f2937;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
  color: var(--blue);
}

.movie-meta,
.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.movie-meta {
  margin: 8px 0;
  color: #64748b;
  font-size: 13px;
  -webkit-line-clamp: 1;
}

.movie-desc {
  min-height: 44px;
  margin: 0;
  color: #475569;
  font-size: 14px;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.feature-list {
  padding: 28px;
}

.warm-panel {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

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

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

.rank-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow);
}

.rank-row img {
  width: 76px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
}

.rank-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

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

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

.rank-info em {
  color: #64748b;
  font-style: normal;
  font-size: 13px;
}

.list-rank {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), #f97316);
  font-weight: 900;
}

.text-link {
  color: var(--blue);
  font-weight: 900;
}

.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #0f172a, #1e3a8a);
  padding: 68px max(32px, calc((100vw - 1180px) / 2));
}

.compact-hero {
  min-height: 320px;
}

.category-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.46));
}

.page-hero > div:not(.page-hero-shade) {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.category-card img {
  width: 130px;
  height: 126px;
  object-fit: cover;
  border-radius: 16px;
  background: #0f172a;
}

.category-card h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 22px;
}

.category-card p {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
}

.sample-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sample-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
}

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

.detail-shell {
  padding: 34px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #64748b;
  font-weight: 700;
}

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

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

.player-panel {
  overflow: hidden;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: #000000;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.28), rgba(0, 0, 0, 0.74));
}

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

.big-play {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 20px 44px rgba(5, 150, 105, 0.36);
  font-size: 30px;
  padding-left: 5px;
}

.player-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 24px 8px;
}

.player-title-row h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.16;
}

.detail-one-line {
  margin: 0;
  padding: 0 24px 26px;
  color: #475569;
  font-size: 17px;
}

.movie-info-card {
  overflow: hidden;
}

.movie-info-card > img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: #0f172a;
}

.info-list {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.info-list p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
}

.info-list strong {
  color: #111827;
}

.info-list span {
  color: #64748b;
  text-align: right;
}

.detail-tags {
  padding: 0 20px 22px;
}

.prose-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
}

.story-card {
  padding: 30px;
}

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

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

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

.empty-state {
  margin: 22px 0 0;
  padding: 18px;
  border-radius: 14px;
  color: #64748b;
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 800;
}

.site-footer {
  margin-top: 48px;
  background: #111827;
  color: #d1d5db;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 44px 0;
}

.footer-logo {
  color: #ffffff;
  font-size: 22px;
}

.footer-inner p {
  margin: 14px 0 0;
  color: #aab2c0;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  font-weight: 700;
}

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

.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}

[hidden] {
  display: none !important;
}

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

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

  .two-columns,
  .rank-layout,
  .detail-layout,
  .prose-section {
    grid-template-columns: 1fr;
  }

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

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0 4px;
  }

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

  .hero {
    height: 560px;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 58px;
  }

  .hero-actions,
  .filter-box,
  .split-head,
  .player-title-row,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .category-showcase,
  .feature-list,
  .story-card {
    padding: 22px;
  }

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

  .category-card img {
    width: 98px;
    height: 118px;
  }

  .footer-inner {
    display: flex;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
