:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-400: #f87171;
  --orange-500: #f97316;
  --green-500: #22c55e;
  --blue-500: #3b82f6;
  --white: #ffffff;
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.16);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.12);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f8fafc 100%);
  min-width: 320px;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(51, 65, 85, 0.98), rgba(15, 23, 42, 0.98));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-500), var(--orange-500));
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.38);
  font-size: 14px;
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, #fecaca, #ffffff, #f87171);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 12px;
  color: #e5e7eb;
  font-size: 15px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  background: rgba(239, 68, 68, 0.95);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-panel {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
}

.mobile-nav-link {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  color: #e5e7eb;
  margin-top: 6px;
}

.mobile-nav-link.sub {
  color: #cbd5e1;
  font-size: 14px;
  padding-left: 24px;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--white);
  background: rgba(239, 68, 68, 0.95);
}

.mobile-panel-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 8px 0;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  color: var(--white);
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(239, 68, 68, 0.28), transparent 28%), linear-gradient(135deg, var(--slate-950), #4c0519 48%, var(--slate-900));
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 650ms ease, transform 650ms ease;
  pointer-events: none;
}

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

.hero-bg-media {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  filter: blur(10px) saturate(1.2);
  transform: scale(1.04);
}

.hero-bg-media 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) 0%, rgba(15, 23, 42, 0.82) 46%, rgba(127, 29, 29, 0.52) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 56px;
  padding: 54px 0;
}

.hero-copy {
  max-width: 780px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 12px;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-movie-title {
  display: block;
  margin-top: 12px !important;
  color: #fecaca;
  font-size: clamp(22px, 3vw, 34px) !important;
  letter-spacing: 0 !important;
}

.hero-desc {
  max-width: 720px;
  margin: 20px 0 0;
  color: #d1d5db;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fee2e2;
  background: rgba(239, 68, 68, 0.13);
  border: 1px solid rgba(248, 113, 113, 0.26);
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  box-shadow: 0 16px 32px rgba(220, 38, 38, 0.32);
}

.btn-glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.btn-ghost {
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(15, 23, 42, 0.35);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.5);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(239, 68, 68, 0.92);
  font-weight: 800;
  font-size: 13px;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: var(--white);
  background: transparent;
}

.hero-arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  transition: width 180ms ease, background-color 180ms ease;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--red-400);
}

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

.home-highlights {
  padding-top: 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 54px;
}

.stat-card {
  min-height: 142px;
  padding: 26px;
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.stat-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: 14px;
}

.stat-card strong {
  display: block;
  font-size: 25px;
  line-height: 1.2;
}

.stat-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.stat-blue {
  background: linear-gradient(135deg, var(--blue-500), #2563eb);
}

.stat-green {
  background: linear-gradient(135deg, var(--green-500), #16a34a);
}

.stat-red {
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
}

.section-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 52px 0 24px;
}

.section-title h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-title span {
  flex: 1;
  height: 4px;
  min-width: 40px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red-400), transparent);
}

.section-more,
.text-link {
  color: var(--red-600);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 20px;
}

.cards-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.cards-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.88);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: rgba(248, 113, 113, 0.45);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-900), var(--red-700));
}

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

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

.cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.86));
}

.cover-region,
.rank-badge,
.cover-play {
  position: absolute;
  z-index: 2;
  color: var(--white);
  font-weight: 800;
  font-size: 12px;
}

.cover-region {
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.93);
}

.rank-badge {
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange-500), var(--red-600));
}

.cover-play {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.92);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  transition: opacity 220ms ease, transform 220ms ease;
}

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

.movie-info {
  padding: 14px;
}

.movie-info h3 {
  margin: 0;
  color: var(--slate-900);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info h3 a:hover {
  color: var(--red-600);
}

.movie-info p {
  margin: 9px 0 0;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--slate-500);
  font-size: 12px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: var(--slate-300);
}

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

.tag-row span {
  color: var(--red-700);
  background: #fef2f2;
  border-color: #fecaca;
}

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

.category-tile {
  display: block;
  padding: 24px;
  min-height: 170px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--red-700));
  box-shadow: var(--shadow-card);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #1e3a8a, var(--slate-900));
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #064e3b, var(--slate-900));
}

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

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

.category-tile span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.home-ranking {
  margin-top: 6px;
}

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

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

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

.ranking-item {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  border-color: rgba(248, 113, 113, 0.42);
  box-shadow: var(--shadow-card);
}

.ranking-cover {
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-900), var(--red-700));
}

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

.ranking-item h3 {
  margin: 0;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.3;
}

.ranking-item h3 a:hover {
  color: var(--red-600);
}

.ranking-item p {
  margin: 7px 0 0;
  color: var(--slate-600);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-rank {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 3;
  min-width: 28px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--red-600));
  font-weight: 900;
  font-size: 12px;
  text-align: center;
}

.sub-hero {
  min-height: 300px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: radial-gradient(circle at 18% 10%, rgba(248, 113, 113, 0.28), transparent 28%), linear-gradient(135deg, var(--slate-950), #7f1d1d, var(--slate-900));
}

.sub-hero > div {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

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

.sub-hero p:not(.hero-kicker) {
  max-width: 780px;
  margin: 18px 0 0;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  margin-bottom: 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--slate-500);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--slate-800);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-chip {
  border: 1px solid #fecaca;
  color: var(--red-700);
  background: #fff7f7;
  border-radius: 999px;
  padding: 8px 12px;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--white);
  background: var(--red-600);
  border-color: var(--red-600);
}

.empty-state {
  margin: 28px 0 0;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff7f7;
  color: var(--red-700);
  text-align: center;
  font-weight: 800;
}

.related-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.related-categories a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--white);
  border: 1px solid var(--slate-200);
  font-weight: 700;
}

.related-categories a:hover {
  color: var(--red-600);
  border-color: #fecaca;
}

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.category-cover-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  min-height: 220px;
}

.category-cover-strip img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 16px;
}

.category-overview-card h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: 28px;
}

.category-overview-card p {
  margin: 10px 0 0;
  color: var(--slate-600);
  line-height: 1.8;
}

.category-overview-card ul {
  padding: 0;
  margin: 18px 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.category-overview-card li a {
  color: var(--slate-700);
}

.category-overview-card li a:hover {
  color: var(--red-600);
}

.detail-hero {
  position: relative;
  min-height: 520px;
  color: var(--white);
  overflow: hidden;
  background: var(--slate-950);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  filter: blur(9px) saturate(1.2);
  transform: scale(1.05);
}

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

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

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 54px 0;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, var(--slate-900), var(--red-700));
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  margin-bottom: 16px;
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #fecaca;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.detail-one-line {
  max-width: 850px;
  margin: 18px 0 0;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-tags span {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.36);
}

.detail-layout {
  padding-top: 42px;
}

.video-shell {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000000;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.16);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.42));
  transition: opacity 180ms ease, visibility 180ms ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  box-shadow: 0 22px 50px rgba(220, 38, 38, 0.38);
  font-size: 30px;
  padding-left: 5px;
}

.video-shell.is-playing .play-overlay,
.video-shell.is-ready .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.detail-article section {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.detail-article h2 {
  margin: 0 0 12px;
  color: var(--slate-900);
  font-size: 24px;
}

.detail-article p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.95;
  font-size: 16px;
}

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

.info-list div {
  padding: 14px;
  border-radius: 13px;
  background: var(--slate-100);
}

.info-list dt {
  color: var(--slate-500);
  font-size: 13px;
}

.info-list dd {
  margin: 4px 0 0;
  color: var(--slate-900);
  font-weight: 800;
}

.related-section {
  margin-top: 18px;
}

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

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

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

.footer-brand p,
.footer-tags {
  margin: 14px 0 0;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 17px;
}

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

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

.site-footer a:hover {
  color: var(--red-400);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-bottom p {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  color: #94a3b8;
}

@media (max-width: 1180px) {
  .cards-six,
  .cards-five {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 34px;
  }

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

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

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

  .hero-inner {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 44px 0 88px;
  }

  .hero-poster {
    width: min(220px, 60vw);
    justify-self: start;
    transform: rotate(0deg);
  }

  .stats-grid,
  .category-grid,
  .ranking-grid,
  .ranking-list {
    grid-template-columns: 1fr;
  }

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

  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-chips {
    justify-content: flex-start;
  }

  .category-overview-card,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(260px, 68vw);
  }
}

@media (max-width: 640px) {
  .brand-text {
    font-size: 19px;
  }

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

  .hero-actions {
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .hero-controls {
    bottom: 18px;
  }

  .content-shell {
    width: min(100% - 24px, 1280px);
    padding: 38px 0;
  }

  .cards-six,
  .cards-five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-info {
    padding: 11px;
  }

  .movie-info h3 {
    font-size: 14px;
  }

  .movie-meta,
  .tag-row {
    display: none;
  }

  .section-title {
    gap: 12px;
    margin: 38px 0 18px;
  }

  .section-more {
    font-size: 14px;
  }

  .sub-hero {
    min-height: 260px;
  }

  .search-box {
    min-width: 0;
  }

  .category-cover-strip {
    min-height: 160px;
  }

  .category-cover-strip img {
    min-height: 160px;
  }

  .ranking-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .ranking-item h3 {
    font-size: 16px;
  }

  .ranking-item p {
    font-size: 13px;
  }

  .detail-hero-inner {
    min-height: auto;
  }

  .detail-meta,
  .detail-tags {
    display: flex;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 36px 0;
  }
}
