:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --orange: #f97316;
  --amber: #f59e0b;
  --green: #166534;
  --blue: #2563eb;
  --purple: #7c3aed;
  --pink: #db2777;
  --slate: #0f172a;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f1f5f9;
  --paper: #ffffff;
  --soft: #fff7ed;
  --shadow: 0 18px 45px rgba(127, 29, 29, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #ffffff;
  font-size: 24px;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.2);
  transition: transform 0.2s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-5deg);
}

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

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

.brand-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-link {
  color: #374151;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.nav-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.08);
}

.nav-search input,
.mobile-search input,
.hero-search input {
  width: 170px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 14px;
  color: var(--text);
}

.nav-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  background: linear-gradient(90deg, var(--red), var(--orange));
  color: #ffffff;
  font-weight: 800;
  padding: 12px 18px;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  color: var(--red);
  font-size: 24px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid #fee2e2;
  background: #ffffff;
}

.mobile-panel.open {
  display: block;
}

.mobile-panel-inner {
  display: grid;
  gap: 10px;
  padding: 12px 0 18px;
}

.mobile-link {
  border-radius: 16px;
  padding: 12px 14px;
  color: #374151;
  font-weight: 700;
}

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

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 112px 0 64px;
  background: linear-gradient(135deg, #fff1f2 0%, #ffedd5 48%, #fff7ed 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(52px);
  opacity: 0.18;
  pointer-events: none;
}

.hero-orb-one {
  width: 340px;
  height: 340px;
  top: 120px;
  left: 4%;
  background: var(--red);
}

.hero-orb-two {
  width: 420px;
  height: 420px;
  right: 4%;
  bottom: 120px;
  background: var(--orange);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-badge span {
  font-size: 28px;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 28px;
  color: #4b5563;
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.btn-primary,
.btn-soft,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  color: #ffffff;
  padding: 14px 26px;
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.22);
}

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

.btn-soft {
  background: rgba(255, 255, 255, 0.62);
  color: var(--red);
  border: 2px solid #fecaca;
  padding: 12px 24px;
}

.hero-search {
  max-width: 540px;
  margin: 8px 0 18px;
}

.hero-search input {
  width: 100%;
  padding: 15px 18px;
}

.hero-search button {
  padding: 15px 28px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chips a {
  border-radius: 999px;
  background: #ffffff;
  color: #7f1d1d;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(127, 29, 29, 0.08);
}

.hero-showcase {
  display: grid;
  gap: 18px;
}

.hero-slider {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(135deg, #7f1d1d, #ea580c);
  box-shadow: 0 28px 75px rgba(127, 29, 29, 0.2);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-slide img.image-missing,
.poster-frame img.image-missing {
  opacity: 0;
}

.hero-slide-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.34) 72%, transparent 100%);
}

.hero-slide-overlay span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 800;
}

.hero-slide-overlay h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.hero-slide-overlay p {
  max-width: 620px;
  margin: 0 0 16px;
  color: #fff7ed;
}

.hero-slide-overlay a {
  display: inline-flex;
  border-radius: 999px;
  background: #ffffff;
  color: var(--red);
  padding: 10px 18px;
  font-weight: 800;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #7f1d1d;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 16px;
}

.hero-next {
  right: 16px;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.hero-mini-grid .movie-card {
  border-radius: 20px;
}

.hero-mini-grid .movie-card-body {
  display: none;
}

.page-main {
  padding-top: 72px;
}

.page-hero,
.detail-hero {
  padding: 68px 0;
  background: linear-gradient(135deg, #fff1f2, #ffedd5);
}

.slim-hero,
.search-hero,
.ranking-hero {
  text-align: center;
}

.page-hero h1,
.detail-copy h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.page-hero p,
.detail-one-line {
  max-width: 760px;
  color: #4b5563;
  font-size: 18px;
}

.slim-hero p,
.search-hero p,
.ranking-hero p {
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: #7f1d1d;
  font-size: 14px;
  font-weight: 700;
}

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

.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-block {
  padding: 56px 0;
}

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

.section-head h2 {
  margin: 5px 0 0;
  font-size: clamp(28px, 4vw, 44px);
}

.text-link {
  color: var(--red);
  background: #fff1f2;
  padding: 10px 18px;
}

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

.category-card,
.category-panel {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  border-radius: var(--radius);
  padding: 24px;
  color: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-panel:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(127, 29, 29, 0.16);
}

.category-icon,
.category-panel-main span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 28px;
}

.category-card strong,
.category-panel h2 {
  display: block;
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card em,
.category-panel p {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
}

.category-panel-links {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.category-panel-links a {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 700;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid #ffedd5;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(127, 29, 29, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #7f1d1d, #f97316);
}

.poster-frame img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.62) 100%);
}

.poster-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.poster-chip {
  right: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--red);
  padding: 6px 10px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.24);
}

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

.movie-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-meta,
.movie-one-line {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.movie-one-line {
  display: -webkit-box;
  min-height: 46px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  border-radius: 999px;
  background: #fff1f2;
  color: #991b1b;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.large-tags span {
  font-size: 13px;
  padding: 6px 11px;
}

.listing-toolbar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin-bottom: 24px;
  border: 1px solid #ffedd5;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  padding: 14px;
  box-shadow: 0 12px 30px rgba(127, 29, 29, 0.07);
}

.listing-toolbar label {
  display: grid;
  gap: 6px;
  color: #7f1d1d;
  font-size: 13px;
  font-weight: 900;
}

.listing-toolbar input,
.listing-toolbar select {
  width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  padding: 12px 13px;
  outline: 0;
}

.movie-card.hidden-by-filter {
  display: none;
}

.detail-hero {
  background: radial-gradient(circle at top left, rgba(220, 38, 38, 0.12), transparent 30%), linear-gradient(135deg, #fff1f2, #ffedd5);
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster {
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(127, 29, 29, 0.18);
}

.detail-copy {
  min-width: 0;
}

.detail-copy h1 {
  max-width: 820px;
}

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

.detail-meta span {
  border-radius: 999px;
  background: #ffffff;
  color: #7f1d1d;
  padding: 8px 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(127, 29, 29, 0.08);
}

.detail-copy .btn-primary {
  margin-top: 24px;
}

.player-section {
  padding: 44px 0;
  background: #111827;
  color: #ffffff;
}

.player-section h2 {
  margin: 0 0 18px;
  font-size: 30px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.18), rgba(15, 23, 42, 0.72));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-box.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 45px rgba(220, 38, 38, 0.32);
  font-size: 34px;
  padding-left: 5px;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 4;
  margin: 0;
  color: #fee2e2;
  font-weight: 700;
  text-align: center;
}

.content-card {
  border: 1px solid #ffedd5;
  border-radius: var(--radius);
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 14px 36px rgba(127, 29, 29, 0.08);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.content-card p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
}

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

.site-footer {
  background: linear-gradient(135deg, #14532d, #166534 45%, #14532d);
  color: #ffffff;
}

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

.footer-brand .brand-mark {
  box-shadow: none;
}

.site-footer p {
  max-width: 420px;
  color: #dcfce7;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.footer-links a {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f0fdf4;
  padding: 8px 12px;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #bbf7d0;
  padding: 18px 0;
  text-align: center;
}

.grad-red {
  background: linear-gradient(135deg, #dc2626, #f97316);
}

.grad-orange {
  background: linear-gradient(135deg, #ea580c, #f59e0b);
}

.grad-blue {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.grad-green {
  background: linear-gradient(135deg, #16a34a, #059669);
}

.grad-pink {
  background: linear-gradient(135deg, #db2777, #f43f5e);
}

.grad-purple {
  background: linear-gradient(135deg, #7c3aed, #c026d3);
}

.grad-cyan {
  background: linear-gradient(135deg, #0891b2, #0ea5e9);
}

.grad-yellow {
  background: linear-gradient(135deg, #ca8a04, #f97316);
}

.grad-brown {
  background: linear-gradient(135deg, #92400e, #b45309);
}

.grad-slate {
  background: linear-gradient(135deg, #334155, #0f172a);
}

.grad-emerald {
  background: linear-gradient(135deg, #059669, #10b981);
}

.grad-indigo {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

@media (max-width: 1080px) {
  .hero-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
    margin: 0 auto;
  }

  .hero-actions,
  .hero-chips {
    justify-content: center;
  }

  .hero-search {
    margin-left: auto;
    margin-right: auto;
  }

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

  .detail-poster {
    max-width: 340px;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-section {
    padding-top: 104px;
  }

  .hero-slider {
    min-height: 440px;
  }

  .hero-mini-grid,
  .movie-grid,
  .category-grid,
  .category-panel-grid,
  .related-grid,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-toolbar {
    grid-template-columns: 1fr;
  }
}

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

  .brand-title {
    font-size: 18px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-slider {
    min-height: 390px;
    border-radius: 26px;
  }

  .hero-slide-overlay {
    padding: 24px;
  }

  .hero-mini-grid,
  .movie-grid,
  .category-grid,
  .category-panel-grid,
  .related-grid,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero,
  .detail-hero {
    padding: 48px 0;
  }

  .detail-poster {
    max-width: 280px;
  }
}
