:root {
  --red-950: #450a0a;
  --red-900: #7f1d1d;
  --red-800: #991b1b;
  --red-700: #b91c1c;
  --red-100: #fee2e2;
  --amber-900: #78350f;
  --amber-700: #b45309;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --gray-950: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(69, 10, 10, 0.16);
  --soft-shadow: 0 12px 32px rgba(31, 41, 55, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-950);
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 44%, #ffffff 100%);
}

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: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(254, 242, 242, 0.96), rgba(255, 251, 235, 0.96));
  border-bottom: 4px solid var(--red-900);
  box-shadow: 0 12px 28px rgba(69, 10, 10, 0.12);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: var(--max-width);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--red-900);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--red-800), var(--amber-700));
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.25);
}

.brand-text {
  font-size: 1.35rem;
}

.desktop-nav,
.mobile-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--gray-700);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--red-800);
  background: rgba(254, 226, 226, 0.85);
  transform: translateY(-1px);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 14px;
  background: var(--red-100);
  color: var(--red-900);
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px 18px;
  flex-wrap: wrap;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(120deg, var(--red-950), var(--red-800) 48%, var(--amber-900));
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255, 255, 255, 0.1) 50px, rgba(255, 255, 255, 0.1) 51px), radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.45), transparent 32%), radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.28), transparent 26%);
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  min-height: 640px;
  margin: 0 auto;
  padding: 68px 22px 54px;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 56px;
  animation: fadeIn 0.5s ease both;
}

.hero-slide.is-active {
  display: grid;
}

.hero-copy h1,
.page-hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.08rem;
}

.hero-kicker,
.kicker {
  display: inline-flex;
  align-items: center;
  color: var(--amber-500);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-desc,
.page-hero p {
  max-width: 760px;
  margin: 0 0 24px;
  color: #fee2e2;
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span,
.movie-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  padding: 6px 11px;
  font-size: 0.83rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

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

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

.btn.primary {
  color: var(--red-900);
  background: white;
  box-shadow: 0 14px 26px rgba(255, 255, 255, 0.18);
}

.btn.ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5.3;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.36);
  isolation: isolate;
}

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

.hero-poster img,
.poster-link img,
.detail-poster img,
.category-covers img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-play,
.poster-play,
.big-play {
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--red-700), var(--amber-500));
  box-shadow: 0 16px 32px rgba(127, 29, 29, 0.3);
}

.hero-play {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  width: 68px;
  height: 68px;
  font-size: 1.6rem;
}

.hero-controls {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: white;
  background: rgba(255, 255, 255, 0.16);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.8rem;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.site-strip {
  max-width: var(--max-width);
  margin: -34px auto 0;
  padding: 0 22px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.site-strip a,
.filter-panel,
.movie-card,
.category-tile,
.category-card,
.side-card,
.detail-article,
.watch-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(254, 226, 226, 0.88);
  box-shadow: var(--soft-shadow);
}

.site-strip a {
  min-height: 92px;
  padding: 20px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-strip a:hover,
.movie-card:hover,
.category-tile:hover,
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.site-strip strong {
  color: var(--red-900);
  font-size: 1.1rem;
}

.site-strip span,
.section-heading p,
.category-tile p,
.movie-card p,
.footer-inner p,
.category-card p,
.detail-article p,
.lead-text {
  color: var(--gray-600);
  line-height: 1.75;
}

.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 68px 22px;
}

.content-section.tinted {
  max-width: none;
  padding-left: max(22px, calc((100vw - var(--max-width)) / 2 + 22px));
  padding-right: max(22px, calc((100vw - var(--max-width)) / 2 + 22px));
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.72), rgba(254, 242, 242, 0.82));
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: var(--gray-950);
}

.section-action,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--red-800);
  font-weight: 900;
}

.filter-panel {
  border-left: 5px solid var(--red-700);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.filter-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.filter-title strong {
  font-size: 1.35rem;
  color: var(--red-900);
}

.filter-title span {
  color: var(--gray-500);
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: 14px;
}

.filter-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--gray-600);
  font-weight: 800;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 46px;
  border: 2px solid var(--red-100);
  border-radius: 14px;
  padding: 0 13px;
  color: var(--gray-950);
  background: white;
  outline: none;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--red-700);
  box-shadow: 0 0 0 4px rgba(254, 226, 226, 0.9);
}

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

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

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 2.85;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red-100), var(--amber-100));
}

.poster-link img {
  transition: transform 0.28s ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(69, 10, 10, 0.72));
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 38px;
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--red-800), var(--amber-500));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

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

.movie-meta {
  color: var(--red-800);
  margin-bottom: 10px;
}

.movie-meta span {
  background: var(--red-100);
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 1.14rem;
  line-height: 1.35;
}

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

.movie-card p {
  min-height: 3.4em;
  margin: 0 0 14px;
  font-size: 0.94rem;
}

.tag-row span {
  background: var(--gray-100);
  color: var(--gray-700);
}

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

.movie-card.is-compact h3 {
  font-size: 1rem;
}

.movie-card.is-compact p {
  display: none;
}

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

.category-tile {
  min-height: 180px;
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.14), rgba(245, 158, 11, 0.22));
}

.category-tile span {
  color: var(--red-900);
  font-size: 1.3rem;
  font-weight: 900;
}

.category-list {
  display: grid;
  gap: 24px;
}

.category-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 230px;
  overflow: hidden;
}

.category-card-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-card h2 {
  margin: 8px 0 12px;
  color: var(--gray-950);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.page-hero {
  color: white;
  background: linear-gradient(120deg, var(--red-950), var(--red-800), var(--amber-900));
  padding: 72px max(22px, calc((100vw - var(--max-width)) / 2 + 22px));
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 48px, rgba(255, 255, 255, 0.1) 48px, rgba(255, 255, 255, 0.1) 49px), radial-gradient(circle at 86% 24%, rgba(245, 158, 11, 0.48), transparent 28%);
}

.page-hero > div {
  position: relative;
  max-width: var(--max-width);
}

.small-hero,
.category-hero,
.ranking-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
}

.detail-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 34px 22px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
  margin-bottom: 22px;
  font-weight: 700;
}

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

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

.watch-panel {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

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

.player-box video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  color: white;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.player-cover.is-hidden {
  display: none;
}

.player-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(69, 10, 10, 0.82));
}

.big-play {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  font-size: 2rem;
}

.player-cover strong {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(46% + 62px);
  text-align: center;
  font-size: 1.18rem;
}

.watch-info {
  padding: 28px;
}

.watch-info h1 {
  margin: 14px 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
}

.strong-meta span {
  background: var(--red-100);
  color: var(--red-800);
}

.detail-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-poster {
  display: block;
  aspect-ratio: 2 / 2.85;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--red-100), var(--amber-100));
}

.side-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.side-card h2,
.detail-article h2 {
  margin: 0 0 18px;
  color: var(--red-900);
  font-size: 1.5rem;
}

.side-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.side-card dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.side-card dt {
  color: var(--gray-500);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 700;
}

.detail-tags {
  margin-top: 18px;
}

.article-section {
  padding-top: 34px;
}

.detail-article {
  border-radius: var(--radius-xl);
  padding: 34px;
}

.detail-article p {
  margin: 0 0 28px;
  font-size: 1.05rem;
}

.site-footer {
  margin-top: 36px;
  color: white;
  background: linear-gradient(135deg, var(--red-950), var(--gray-950));
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 22px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 12px;
  color: white;
  font-size: 1.3rem;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px 30px;
  color: rgba(255, 255, 255, 0.66);
}

.js-card.is-hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 260px 1fr;
  }
}

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

  .menu-toggle {
    display: flex;
  }

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

  .hero-inner {
    min-height: auto;
    padding-top: 44px;
    padding-bottom: 84px;
  }

  .hero-slide,
  .hero-slide.is-active {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-poster {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
  }

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

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

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

@media (max-width: 580px) {
  .header-inner {
    min-height: 64px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-text {
    font-size: 1.12rem;
  }

  .site-strip,
  .filter-grid,
  .movie-grid,
  .movie-grid.compact-grid,
  .category-grid,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .site-strip {
    margin-top: 18px;
  }

  .section-heading,
  .filter-title,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .page-hero {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .watch-info,
  .detail-article {
    padding: 22px;
  }
}
