:root {
  --bg: #fff7ed;
  --bg-soft: #fff1f2;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(248, 113, 113, 0.18);
  --red: #ef4444;
  --orange: #f97316;
  --pink: #ec4899;
  --deep: #7f1d1d;
  --shadow: 0 20px 40px rgba(127, 29, 29, 0.12);
  --shadow-strong: 0 30px 70px rgba(127, 29, 29, 0.25);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 45%, #ffe4e6 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(127, 29, 29, 0.10);
}

.nav-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--pink));
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.30);
}

.brand-text {
  font-size: 1.45rem;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link,
.mobile-link {
  color: #4b5563;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--red);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--red);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 8px 16px 16px;
  border-top: 1px solid var(--line);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.active {
  background: #fff1f2;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 25%, rgba(249, 115, 22, 0.35), transparent 30%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(127, 29, 29, 0.72) 46%, rgba(17, 24, 39, 0.25) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.92), transparent 40%);
}

.hero-content {
  position: relative;
  min-height: 640px;
  padding: 96px 0 140px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 52px;
  align-items: center;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.9rem);
  line-height: 0.95;
  margin: 0 0 22px;
  letter-spacing: -0.07em;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 24px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(8px);
}

.tag-row span {
  color: #b91c1c;
  background: #fff1f2;
}

.large-tags span {
  font-size: 0.86rem;
}

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

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--pink));
  box-shadow: 0 14px 32px rgba(239, 68, 68, 0.30);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(8px);
}

.btn-ghost.dark {
  color: var(--deep);
  background: rgba(255, 255, 255, 0.74);
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
  background: rgba(255, 255, 255, 0.15);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.88);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: #fff;
}

.hero-search,
.search-panel {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: min(820px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-search input,
.search-panel input,
.toolbar input,
.toolbar select {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  color: var(--text);
  background: #fff7ed;
}

.hero-search input:focus,
.search-panel input:focus,
.toolbar input:focus,
.toolbar select:focus {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10);
}

.hero-search button,
.search-panel button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--red), var(--orange));
  cursor: pointer;
}

.section {
  padding: 76px 0;
}

.section-light {
  background: rgba(255, 255, 255, 0.40);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.align-left {
  text-align: left;
  margin-left: 0;
}

.section-head h2,
.page-hero h1,
.detail-info-card h1 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.section-head p,
.page-hero p,
.category-card-large p,
.content-card p,
.detail-one-line {
  color: var(--muted);
  line-height: 1.85;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.chip {
  padding: 10px 16px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 750;
  background: #fff;
  box-shadow: 0 8px 20px rgba(127, 29, 29, 0.08);
}

.chip:hover,
.chip.active {
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--pink));
}

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

.category-tile,
.category-card-large,
.ranking-panel,
.content-card,
.detail-info-card,
.player-card,
.ranking-list-shell {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.category-tile {
  display: block;
  padding: 22px;
  min-height: 230px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.category-count {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--red);
  font-weight: 800;
  font-size: 0.82rem;
}

.category-tile h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.category-tile p {
  min-height: 72px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

.category-preview {
  display: grid;
  gap: 8px;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.card-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.10);
  filter: brightness(0.82);
}

.quality-badge,
.play-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quality-badge {
  top: 10px;
  right: 10px;
  border-radius: 8px;
  padding: 4px 7px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(239, 68, 68, 0.92);
}

.play-float {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #fff;
  background: rgba(239, 68, 68, 0.88);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
  padding: 15px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

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

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

.card-body p {
  min-height: 52px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.ranking-panel {
  padding: 20px;
  position: sticky;
  top: 88px;
}

.ranking-panel.bright {
  position: static;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  font-weight: 900;
}

.panel-title a,
.text-link,
.text-link-row a {
  color: var(--red);
  font-weight: 800;
}

.compact-link {
  display: grid;
  grid-template-columns: auto 52px 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 15px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-link:hover {
  background: #fff1f2;
  transform: translateX(3px);
}

.compact-link img {
  width: 52px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  background: #fee2e2;
}

.compact-link strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.35;
}

.compact-link small {
  color: var(--muted);
}

.rank-no {
  width: 28px;
  color: var(--red);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.toolbar input {
  flex: 1 1 360px;
}

.toolbar select {
  min-width: 160px;
}

.result-counter {
  color: var(--deep);
  font-weight: 850;
}

.page-shell {
  min-height: 60vh;
}

.page-hero {
  padding: 86px 0;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(236, 72, 153, 0.38), transparent 30%),
    linear-gradient(135deg, #7f1d1d 0%, #c2410c 54%, #831843 100%);
}

.page-hero h1,
.page-hero p {
  color: #fff;
  max-width: 820px;
}

.small-hero {
  padding: 72px 0;
}

.two-column-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: center;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 24px;
}

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

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
  background: #fee2e2;
}

.category-card-large h2 {
  margin: 0 0 8px;
}

.category-card-large ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  padding: 0;
  margin: 16px 0;
  list-style: none;
}

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

.ranking-list-shell {
  padding: 24px;
}

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

.search-panel {
  position: static;
  transform: none;
  margin-top: 24px;
}

.detail-hero-wrap {
  padding: 34px 0 54px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.28), transparent 28%),
    linear-gradient(135deg, #111827 0%, #7f1d1d 52%, #831843 100%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 30px;
  align-items: start;
}

.player-card {
  position: relative;
  overflow: hidden;
  background: #000;
}

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

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--pink));
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.35);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.big-play:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.player-tools {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  pointer-events: none;
}

.player-tools button {
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 999px;
  padding: 9px 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.detail-info-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 20px;
  color: var(--text);
}

.detail-info-card img {
  width: 130px;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
  background: #fee2e2;
}

.detail-info-card h1 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 16px 0;
  color: #4b5563;
  font-size: 0.92rem;
}

.detail-meta a {
  color: var(--red);
  font-weight: 800;
}

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

.content-card {
  padding: 26px;
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.full-span {
  grid-column: 1 / -1;
}

.text-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.text-link-row a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff1f2;
}

.site-footer {
  margin-top: 0;
  color: #fff;
  background: linear-gradient(90deg, #7f1d1d, #9a3412, #831843);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 48px 0;
}

.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

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

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

.footer-brand {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

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

  .hero-content,
  .feature-layout,
  .two-column-hero,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

  .ranking-panel {
    position: static;
  }
}

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

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

  .hero {
    min-height: 760px;
  }

  .hero-content {
    min-height: 680px;
    padding-top: 74px;
    padding-bottom: 170px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-search,
  .search-panel {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .all-grid,
  .ranking-list,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card-large,
  .detail-info-card {
    grid-template-columns: 1fr;
  }

  .detail-info-card img {
    width: 180px;
  }

  .player-tools {
    position: static;
    padding: 12px;
    background: #111;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1200px);
  }

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

  .hero {
    min-height: 820px;
  }

  .hero-content {
    gap: 26px;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .section {
    padding: 52px 0;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .all-grid,
  .ranking-list,
  .detail-content-grid,
  .footer-grid,
  .detail-meta,
  .category-card-large ul {
    grid-template-columns: 1fr;
  }

  .card-body p {
    min-height: auto;
  }

  .category-overview {
    gap: 16px;
  }
}
