:root {
  --page-bg: #0b0b10;
  --panel-bg: #11121a;
  --card-bg: #ffffff;
  --text-main: #16181d;
  --text-muted: #6b7280;
  --text-soft: #d1d5db;
  --brand-red: #dc2626;
  --brand-orange: #f97316;
  --brand-gold: #facc15;
  --line-soft: rgba(255, 255, 255, 0.12);
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.25);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background: #f5f6fa;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
  width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(185, 28, 28, 0.96), rgba(249, 115, 22, 0.96));
  box-shadow: 0 14px 45px rgba(127, 29, 29, 0.28);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--container), calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--brand-red);
  background: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.logo-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-copy strong {
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.logo-copy small {
  margin-top: 4px;
  opacity: 0.88;
  font-size: 0.78rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: #ffffff;
}

.nav-category {
  opacity: 0.82;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.hero-section {
  color: #ffffff;
  background: #050507;
}

.hero-carousel {
  position: relative;
  min-height: clamp(560px, 72vh, 780px);
  overflow: hidden;
}

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

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

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(249, 115, 22, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(5, 5, 7, 0.94) 0%, rgba(12, 12, 17, 0.76) 42%, rgba(12, 12, 17, 0.28) 100%),
    linear-gradient(0deg, rgba(5, 5, 7, 0.92) 0%, transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 40px));
  min-height: clamp(560px, 72vh, 780px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  margin-left: max(20px, calc((100% - var(--container)) / 2));
}

.hero-kicker,
.page-hero span,
.section-heading span,
.detail-channel {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-orange));
  border-radius: 999px;
  padding: 7px 13px;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}

.hero-content h1,
.hero-content h2 {
  margin: 22px 0 16px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.hero-content p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.9;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.primary-button,
.ghost-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-orange));
  box-shadow: 0 16px 36px rgba(220, 38, 38, 0.32);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.small-button {
  min-height: 40px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--text-main);
}

.primary-button:hover,
.ghost-button:hover,
.small-button:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 2rem;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

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

.quick-search-panel {
  width: min(var(--container), calc(100% - 32px));
  margin: -36px auto 0;
  position: relative;
  z-index: 8;
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.quick-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.quick-search input,
.filter-search input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 14px 18px;
  outline: none;
  background: #ffffff;
}

.quick-search input:focus,
.filter-search input:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.quick-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-orange));
  padding: 0 26px;
  font-weight: 900;
  cursor: pointer;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 700;
}

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

.content-section {
  padding: 72px 0;
}

.no-top-padding {
  padding-top: 28px;
}

.dark-section {
  width: 100%;
  max-width: none;
  padding: 72px max(16px, calc((100% - var(--container)) / 2));
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.22), transparent 32%),
    linear-gradient(135deg, #111827, #050507);
}

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

.section-heading h2 {
  margin: 12px 0 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  max-width: 680px;
  color: var(--text-muted);
  line-height: 1.7;
}

.dark-section .section-heading p {
  color: var(--text-soft);
}

.section-link {
  min-width: max-content;
  color: var(--brand-red);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 56%);
  opacity: 0.82;
}

.play-dot {
  position: absolute;
  z-index: 2;
  right: 13px;
  bottom: 13px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brand-red);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 900;
}

.rank-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  border-radius: 11px;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.32);
}

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

.movie-meta-line,
.movie-extra,
.detail-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.movie-meta-line {
  justify-content: space-between;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--brand-red);
}

.movie-card p {
  margin: 0 0 12px;
  color: #4b5563;
  line-height: 1.7;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

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

.tag-row span {
  color: var(--brand-red);
  background: rgba(220, 38, 38, 0.08);
  border: 0;
}

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

.movie-card-compact {
  display: grid;
  grid-template-columns: 122px 1fr;
  min-height: 146px;
}

.movie-card-compact .movie-poster {
  height: 100%;
  aspect-ratio: auto;
}

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

.movie-card-compact h3 {
  margin-top: 6px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.category-tile {
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.category-tile > a {
  display: block;
  padding: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 20%, rgba(250, 204, 21, 0.25), transparent 30%),
    linear-gradient(135deg, var(--brand-red), var(--brand-orange));
}

.category-tile span {
  font-weight: 900;
  letter-spacing: 0.08em;
  opacity: 0.88;
}

.category-tile h3 {
  margin: 18px 0 10px;
  font-size: 1.55rem;
}

.category-tile p {
  margin: 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 16px 20px 20px;
}

.category-samples a {
  color: #374151;
  font-weight: 700;
  line-height: 1.45;
}

.category-samples a:hover {
  color: var(--brand-red);
}

.page-main {
  padding-bottom: 70px;
}

.page-hero {
  margin-top: 34px;
  border-radius: var(--radius-xl);
  color: #ffffff;
  padding: clamp(42px, 7vw, 86px);
  background:
    radial-gradient(circle at 80% 18%, rgba(249, 115, 22, 0.42), transparent 34%),
    linear-gradient(135deg, #111827, #060608 66%);
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  line-height: 1.8;
}

.category-overview-list {
  display: grid;
  gap: 26px;
  padding-top: 34px;
}

.category-overview-block {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.category-overview-copy span {
  color: var(--brand-red);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.category-overview-copy h2 {
  margin: 10px 0;
  font-size: 2rem;
}

.category-overview-copy p {
  margin: 0 0 20px;
  color: var(--text-muted);
  line-height: 1.75;
}

.category-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.filter-panel {
  margin: 26px 0 0;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.large-filter {
  position: sticky;
  top: 92px;
  z-index: 30;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.filter-chips button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 800;
  cursor: pointer;
}

.filter-chips button.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-orange));
}

.empty-state {
  display: none;
  margin: 36px 0;
  text-align: center;
  color: var(--text-muted);
  font-weight: 800;
}

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #6b7280;
  font-size: 0.92rem;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 410px) 1fr;
  gap: clamp(24px, 5vw, 54px);
  align-items: stretch;
  padding: clamp(22px, 4vw, 38px);
  border-radius: var(--radius-xl);
  color: #ffffff;
  background:
    radial-gradient(circle at 84% 10%, rgba(249, 115, 22, 0.36), transparent 34%),
    linear-gradient(135deg, #111827, #050507 72%);
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-copy h1 {
  margin: 20px 0 14px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-one-line {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.13rem;
  line-height: 1.85;
}

.detail-facts {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 16px;
}

.watch-section {
  margin-top: 34px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radius-xl);
  background: #0a0a0f;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.compact-heading {
  margin-bottom: 18px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.18));
  cursor: pointer;
}

.play-cover span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  font-size: 2rem;
  box-shadow: 0 18px 42px rgba(220, 38, 38, 0.38);
}

.player-shell.is-playing .play-cover {
  opacity: 0;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 34px;
}

.detail-content article {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 1.5rem;
}

.detail-content p {
  margin: 0;
  color: #4b5563;
  line-height: 1.95;
}

.related-section {
  width: 100%;
  padding-bottom: 0;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #030305);
}

.footer-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 36px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand strong {
  display: block;
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.footer-brand p {
  margin: 0;
  line-height: 1.8;
  color: #9ca3af;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
}

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

.footer-links a {
  display: inline-block;
  margin: 0 14px 10px 0;
  color: #d1d5db;
}

.footer-links a:hover {
  color: var(--brand-orange);
}

.footer-bottom {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 0.9rem;
}

[hidden] {
  display: none !important;
}

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

  .mobile-menu-button {
    display: block;
  }

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

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

  .large-filter {
    position: static;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 66px;
  }

  .logo-copy small,
  .nav-category {
    display: none;
  }

  .hero-carousel,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-left: 16px;
    justify-content: flex-end;
    padding-bottom: 88px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search {
    grid-template-columns: 1fr;
  }

  .quick-search button {
    min-height: 46px;
  }

  .section-heading {
    display: block;
  }

  .section-link {
    display: inline-flex;
    margin-top: 14px;
  }

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

  .movie-card-compact {
    grid-template-columns: 116px 1fr;
  }

  .page-hero {
    padding: 34px 22px;
  }

  .detail-main,
  .content-section,
  .page-main,
  .quick-search-panel {
    width: calc(100% - 24px);
  }

  .detail-hero {
    padding: 18px;
  }

  .detail-poster img {
    min-height: 260px;
  }

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