:root {
  --color-bg: #f3f4f6;
  --color-bg-soft: #f8fafc;
  --color-card: #ffffff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-red: #ef4444;
  --color-red-dark: #dc2626;
  --color-orange: #f97316;
  --color-slate: #0f172a;
  --color-slate-soft: #1e293b;
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.28);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: var(--color-text);
  font-family: Inter, 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 {
  display: block;
  width: 100%;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28);
}

.nav-shell {
  width: min(var(--container), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #d1d5db;
  font-size: 15px;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #f87171;
}

.nav-search,
.hero-search,
.inline-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.hero-search input,
.inline-filter input,
.inline-filter select {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  color: #111827;
  background: rgba(255, 255, 255, 0.96);
}

.nav-search button,
.hero-search button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(90deg, var(--color-red), var(--color-red-dark));
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.hero-search button:hover,
.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.34);
}

.ghost-button {
  color: #fee2e2;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.mobile-toggle {
  display: none;
  justify-self: end;
  border: 0;
  border-radius: 12px;
  padding: 8px 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 18% 20%, rgba(239, 68, 68, 0.48), transparent 28%), linear-gradient(120deg, #0f172a 0%, #7f1d1d 52%, #0f172a 100%);
  padding: 68px 0 58px;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% -10%;
  height: 260px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.35), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #f87171, #fb923c, #fca5a5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  margin: 0 0 26px;
  max-width: 700px;
  color: #d1d5db;
  font-size: clamp(18px, 2vw, 24px);
}

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

.hero-panel {
  position: relative;
  min-height: 430px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.55);
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.28) 56%, rgba(2, 6, 23, 0.10) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  padding: 30px;
}

.hero-slide-content h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.2;
}

.hero-slide-content p {
  margin: 0 0 16px;
  color: #e5e7eb;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta span,
.badge,
.rank-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.hero-meta span {
  color: #ffffff;
  background: rgba(239, 68, 68, 0.86);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 22px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  width: 26px;
  background: #ffffff;
}

.featured-strip {
  position: relative;
  z-index: 2;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.featured-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.35);
}

.featured-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.featured-card:hover img {
  transform: scale(1.08);
}

.featured-card span {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--color-red-dark);
  font-size: 12px;
  font-weight: 800;
}

.featured-card strong {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 12px 12px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
  font-size: 14px;
  line-height: 1.35;
}

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

.section-soft {
  background: linear-gradient(90deg, #eff6ff, #f0fdfa);
}

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

.section-head h2,
.page-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--color-muted);
}

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

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

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
}

.movie-card:hover .poster-link::after {
  background: rgba(0, 0, 0, 0.28);
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(239, 68, 68, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(10px);
}

.hot-label {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  border-radius: 8px;
  padding: 5px 9px;
  color: #ffffff;
  background: var(--color-red-dark);
  font-size: 12px;
  font-weight: 800;
}

.movie-body {
  padding: 16px;
}

.movie-body h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

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

.movie-body p {
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 14px;
}

.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--color-muted);
  font-size: 13px;
}

.year-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--color-red-dark);
  background: #fee2e2;
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #7f1d1d);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.22);
}

.category-tile img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.category-tile-content {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.category-tile-content h2,
.category-tile-content h3 {
  margin: 0 0 10px;
  font-size: 25px;
}

.category-tile-content p {
  margin: 0;
  color: #e5e7eb;
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.34), transparent 26%), linear-gradient(100deg, #0f172a, #7f1d1d, #111827);
  padding: 58px 0;
}

.page-title h1 {
  color: #ffffff;
}

.page-title p {
  max-width: 760px;
  color: #d1d5db;
}

.filter-panel {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.inline-filter {
  flex-wrap: wrap;
}

.inline-filter input,
.inline-filter select {
  min-width: 220px;
  border-color: #e5e7eb;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 8px 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.filter-btn.is-active {
  background: linear-gradient(90deg, var(--color-red), var(--color-orange));
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 180px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.rank-num {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange));
}

.rank-item img {
  aspect-ratio: 16 / 9;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.rank-content h2,
.rank-content h3 {
  margin: 0 0 8px;
  color: #111827;
}

.rank-content p {
  margin: 0;
  color: var(--color-muted);
}

.detail-main {
  padding: 34px 0 58px;
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--color-muted);
  font-size: 14px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.86fr);
  gap: 28px;
  align-items: start;
}

.video-card,
.info-card,
.recommend-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.30);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.video-play-circle {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.92);
  box-shadow: 0 16px 34px rgba(239, 68, 68, 0.35);
  font-size: 34px;
  transform: translateZ(0);
}

.info-card {
  margin-top: 22px;
  padding: 26px;
}

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.detail-title-row h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.18;
}

.region-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 9px 14px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-red), var(--color-orange));
  font-size: 14px;
  font-weight: 800;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.tag-list span {
  border-radius: 999px;
  padding: 6px 11px;
  color: #374151;
  background: #f3f4f6;
  font-size: 13px;
}

.detail-section {
  margin-top: 24px;
}

.detail-section h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 22px;
}

.detail-section p {
  margin: 0;
  color: #4b5563;
}

.review-box {
  border-radius: 16px;
  padding: 22px;
  background: linear-gradient(135deg, #fff1f2, #fff7ed);
}

.recommend-card {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.recommend-card h2 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 24px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 12px;
  padding: 8px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: #f9fafb;
}

.related-item img {
  aspect-ratio: 16 / 9;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.related-item strong {
  display: block;
  color: #111827;
  line-height: 1.35;
}

.related-item span {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 13px;
}

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

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

.site-footer {
  color: #9ca3af;
  background: #111827;
  padding: 42px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 26px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.site-footer p,
.site-footer ul {
  margin: 0;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #1f2937;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .nav-shell {
    grid-template-columns: auto auto;
  }

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

  .nav-links,
  .nav-search {
    display: none;
    grid-column: 1 / -1;
  }

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

  .nav-links.is-open {
    flex-wrap: wrap;
    padding-bottom: 4px;
  }

  .nav-search.is-open {
    padding-bottom: 16px;
  }

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

  .hero-panel {
    min-height: 380px;
  }

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

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

  .rank-item .primary-button {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .nav-shell {
    min-height: 64px;
  }

  .logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .nav-search,
  .hero-search,
  .inline-filter,
  .filter-panel {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-section,
  .page-hero {
    padding: 42px 0;
  }

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

  .hero-slide-content {
    padding: 22px;
  }

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

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

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

  .rank-num {
    width: 42px;
    height: 42px;
  }

  .rank-item img {
    width: 100%;
  }

  .detail-title-row {
    flex-direction: column;
  }

  .recommend-card {
    position: static;
  }

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