* {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --bg-soft: #f3f4f6;
  --text: #111827;
  --muted: #64748b;
  --muted-dark: #94a3b8;
  --card: #ffffff;
  --line: #e5e7eb;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --red: #ef4444;
  --red-strong: #dc2626;
  --orange: #f97316;
  --gold: #f59e0b;
  --shadow-sm: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 20px 45px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.24);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg), var(--bg-soft));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, 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;
  color: #fff;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  box-shadow: 0 12px 35px rgba(2, 6, 23, 0.35);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.35);
}

.brand-text,
.footer-brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #ef4444, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  white-space: nowrap;
}

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: #f87171;
}

.header-search {
  position: relative;
  width: 280px;
  flex: 0 0 auto;
}

.header-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(248, 113, 113, 0.8);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16);
  background: rgba(255, 255, 255, 0.14);
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.search-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(420px, 88vw);
  max-height: 430px;
  overflow: auto;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow-lg);
}

.search-panel.is-visible {
  display: block;
}

.search-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  color: #fff;
  transition: background 0.25s ease;
}

.search-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.search-item img {
  width: 72px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  background: #111827;
}

.search-item strong {
  display: block;
  margin-bottom: 4px;
}

.search-item span {
  display: block;
  color: #cbd5e1;
  font-size: 13px;
}

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 14px;
  padding: 0 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.menu-button span {
  height: 2px;
  border-radius: 99px;
  background: #fff;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(239, 68, 68, 0.32), transparent 34%), linear-gradient(120deg, var(--slate-950), #450a0a 54%, var(--slate-900));
}

.hero-track {
  position: relative;
  min-height: 680px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  filter: blur(16px) saturate(1.2);
  transform: scale(1.08);
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.74), rgba(127, 29, 29, 0.52));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 430px;
  align-items: center;
  gap: 56px;
  padding: 72px 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: #fb923c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, #fecaca, #fb923c, #fff7ed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title {
  margin: 18px 0 0;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
}

.hero-desc,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  margin: 18px 0 0;
  color: #d1d5db;
  font-size: 18px;
}

.hero-tags,
.detail-meta,
.card-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--red-strong), var(--orange));
  box-shadow: 0 20px 38px rgba(220, 38, 38, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.42));
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #111827;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 99px;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--red), var(--orange));
}

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

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

.section-heading h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-link {
  min-height: 40px;
  color: var(--red-strong);
  background: #fee2e2;
}

.light-heading h2,
.light-heading .section-kicker,
.light-link {
  color: #fff;
}

.light-link {
  background: rgba(255, 255, 255, 0.12);
}

.quick-search-section {
  padding-bottom: 0;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px 180px;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.filter-bar input,
.filter-bar select {
  color: #111827;
  border-color: #e5e7eb;
  background: #f8fafc;
}

.filter-bar input::placeholder {
  color: #94a3b8;
}

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

.category-tile,
.category-overview-card,
.side-card,
.detail-section {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

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

.category-tile::before {
  content: "";
  position: absolute;
  inset: -70% -20% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(249, 115, 22, 0.16));
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.category-tile span {
  position: relative;
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.category-tile em {
  position: relative;
  color: var(--muted);
  font-style: normal;
}

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

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

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

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

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.card-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.72));
  opacity: 0.8;
}

.play-chip,
.region-chip,
.rank-badge {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.play-chip {
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.region-chip {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.66);
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 16px 28px rgba(239, 68, 68, 0.26);
}

.card-body {
  padding: 17px;
}

.card-body.compact {
  padding: 14px;
}

.card-body h3 {
  min-height: 52px;
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.42;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.card-meta {
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
  color: #cbd5e1;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  min-height: 24px;
  padding: 2px 9px;
  color: #b91c1c;
  font-size: 12px;
  background: #fee2e2;
}

.large-tags span {
  min-height: 30px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.ranking-strip {
  width: 100%;
  max-width: none;
  padding: 58px max(16px, calc((100% - 1180px) / 2));
  color: #fff;
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.32), transparent 34%), linear-gradient(120deg, #0f172a, #7f1d1d, #111827);
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 25% 0%, rgba(248, 113, 113, 0.34), transparent 30%), linear-gradient(120deg, #020617, #7f1d1d 55%, #111827);
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.page-hero h1 {
  max-width: 900px;
}

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

.category-overview-card {
  padding: 24px;
}

.category-overview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.category-overview-head h2 {
  margin: 0;
  font-size: 28px;
}

.category-overview-card p {
  color: var(--muted);
}

.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mini-card {
  overflow: hidden;
  border-radius: 16px;
  color: #fff;
  background: #111827;
}

.mini-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mini-card:hover img {
  transform: scale(1.06);
  opacity: 0.96;
}

.mini-card span {
  display: block;
  min-height: 48px;
  padding: 9px;
  font-size: 13px;
  font-weight: 800;
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  filter: blur(18px) saturate(1.25);
  transform: scale(1.08);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 12px 0 38px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fca5a5;
}

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

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

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

.detail-info h1 {
  font-size: clamp(34px, 5vw, 64px);
}

.detail-meta {
  margin: 22px 0;
}

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

.player-section,
.video-stage {
  overflow: hidden;
  border-radius: 26px;
  background: #030712;
  box-shadow: var(--shadow-md);
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.76));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding-left: 5px;
  font-size: 38px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 22px 45px rgba(239, 68, 68, 0.36);
}

.play-overlay strong {
  width: min(80%, 520px);
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.25;
}

.detail-section {
  margin-top: 26px;
  padding: 26px;
}

.detail-section h2,
.side-card h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 26px;
  font-weight: 900;
}

.detail-section p {
  margin: 0;
  color: #334155;
  font-size: 17px;
}

.side-card {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.side-card dl {
  margin: 0;
}

.side-card div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.side-card div:last-child {
  border-bottom: 0;
}

.side-card dt {
  color: var(--muted);
}

.side-card dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

.side-card a {
  color: var(--red-strong);
}

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

.site-footer {
  margin-top: 24px;
  color: #cbd5e1;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  padding: 42px 0;
}

.footer-shell p {
  max-width: 520px;
  margin: 12px 0 0;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.is-hidden-by-filter {
  display: none !important;
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 12px;
    font-size: 14px;
  }

  .header-search {
    width: 230px;
  }

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

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

@media (max-width: 920px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-button {
    display: flex;
    margin-left: auto;
  }

  .hero-content,
  .detail-grid,
  .detail-layout,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: 740px;
    gap: 28px;
    padding: 56px 0 92px;
  }

  .hero-poster {
    width: min(360px, 80vw);
    justify-self: center;
  }

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

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

  .side-card {
    position: static;
  }

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

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

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

  .mobile-nav.is-open,
  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .feature-grid,
  .ranking-list,
  .related-grid,
  .mini-card-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider,
  .hero-track,
  .hero-content {
    min-height: 760px;
  }

  .section-shell {
    padding: 38px 0;
  }

  .section-heading,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions {
    width: 100%;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .detail-shell {
    padding-bottom: 44px;
  }

  .detail-cover {
    width: min(280px, 78vw);
  }

  .play-circle {
    width: 66px;
    height: 66px;
    font-size: 30px;
  }
}
