* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #1f2937;
  background: #fff7ed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

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

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

.logo-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #ec4899);
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28);
}

.logo-text {
  font-size: 24px;
  line-height: 1;
  color: transparent;
  background: linear-gradient(135deg, #f97316, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
}

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

.nav-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #f97316;
}

.nav-search {
  display: flex;
  align-items: center;
  min-width: 260px;
  padding: 4px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff;
}

.nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 8px 12px;
  background: transparent;
}

.nav-search button {
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.mobile-toggle {
  display: none;
  border: 0;
  cursor: pointer;
  font-size: 28px;
  color: #374151;
  background: transparent;
}

.mobile-panel {
  display: none;
  padding: 10px 16px 18px;
  border-top: 1px solid #fee2e2;
  background: #fff;
}

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

.mobile-panel a {
  padding: 11px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
}

.mobile-panel a:hover {
  color: #f97316;
  background: #fff7ed;
}

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

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) brightness(0.78);
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 24%, rgba(236, 72, 153, 0.34), transparent 32%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.82) 42%, rgba(15, 23, 42, 0.24) 100%),
    linear-gradient(0deg, rgba(255, 122, 26, 0.42), transparent 55%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  align-items: center;
  gap: 56px;
  padding-top: 36px;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffedd5;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 660px;
  margin: 22px 0 0;
  color: #ffedd5;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.8;
}

.tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag-strip span,
.detail-tags span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

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

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

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ec4899);
  box-shadow: 0 16px 35px rgba(236, 72, 153, 0.32);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.text-btn {
  color: #f97316;
  background: #fff7ed;
}

.primary-btn:hover,
.ghost-btn:hover,
.text-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

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

.hero-poster-main {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster-main img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

.hero-mini-list a {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.hero-mini-list img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  right: 34px;
  bottom: 34px;
  display: flex;
  gap: 12px;
  z-index: 4;
}

.hero-controls button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

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

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

.page-hero {
  padding: 72px 0 46px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(249, 115, 22, 0.42), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(236, 72, 153, 0.34), transparent 28%),
    linear-gradient(135deg, #111827, #1f2937 58%, #431407);
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fed7aa;
  font-weight: 800;
}

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

.section {
  padding: 66px 0;
}

.section.light {
  background: #fff;
}

.section.soft {
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
}

.section-heading.center {
  text-align: center;
  align-items: center;
}

.section-heading span {
  width: fit-content;
  padding: 6px 13px;
  border-radius: 999px;
  color: #ea580c;
  background: #ffedd5;
  font-weight: 900;
  font-size: 13px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  color: #111827;
}

.section-heading p {
  max-width: 720px;
  margin: 0;
  color: #6b7280;
  line-height: 1.75;
}

.heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

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

.category-tile {
  min-height: 158px;
  padding: 24px;
  color: #fff;
  overflow: hidden;
  position: relative;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.13);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 58px rgba(15, 23, 42, 0.18);
}

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

.category-tile p,
.category-tile em {
  margin: 0;
  font-style: normal;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.orange-pink {
  background: linear-gradient(135deg, #f97316, #ec4899);
}

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

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

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

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

.amber-yellow {
  background: linear-gradient(135deg, #d97706, #facc15);
}

.slate-gray {
  background: linear-gradient(135deg, #334155, #111827);
}

.green-teal {
  background: linear-gradient(135deg, #16a34a, #14b8a6);
}

.blue-violet {
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
}

.fuchsia-rose {
  background: linear-gradient(135deg, #c026d3, #e11d48);
}

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

.movie-card {
  min-width: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.poster-frame {
  position: relative;
  overflow: hidden;
  background: #111827;
}

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

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

.quality-badge,
.year-badge {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.quality-badge {
  top: 10px;
  left: 10px;
}

.year-badge {
  right: 10px;
  bottom: 10px;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(8px);
}

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

.movie-card-body h3 {
  min-height: 44px;
  margin: 0 0 10px;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card-body p {
  min-height: 58px;
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #ea580c;
  font-size: 12px;
  font-weight: 800;
  background: #ffedd5;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.rank-panel {
  border-radius: 28px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.11);
}

.rank-panel h3 {
  margin: 0 0 18px;
  font-size: 24px;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  border: 1px solid #ffedd5;
  border-radius: 18px;
  background: #fff;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  border-color: #fb923c;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.rank-row a {
  display: grid;
  grid-template-columns: 44px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
}

.rank-num {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.rank-row img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.rank-info strong {
  color: #111827;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info em {
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-play {
  color: #f97316;
  font-size: 13px;
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 160px 160px 110px;
  align-items: end;
  gap: 14px;
  margin: 0 0 30px;
  padding: 18px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.filter-field {
  display: grid;
  gap: 7px;
}

.filter-field label {
  color: #6b7280;
  font-size: 13px;
  font-weight: 900;
}

.filter-field input,
.filter-field select {
  width: 100%;
  height: 46px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  outline: 0;
  padding: 0 12px;
  background: #fff;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.14);
}

.filter-reset {
  height: 46px;
  border: 0;
  cursor: pointer;
  color: #fff;
  border-radius: 14px;
  font-weight: 900;
  background: #111827;
}

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

.category-block {
  padding: 26px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.category-block-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.category-block-head h2 {
  margin: 0 0 8px;
  color: #111827;
}

.category-block-head p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

.detail-main {
  padding: 52px 0 70px;
  background: #fff7ed;
}

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

.player-card,
.detail-info-card,
.content-card {
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
}

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

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background:
    radial-gradient(circle, rgba(249, 115, 22, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.54));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-overlay span {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 50%;
  font-size: 34px;
  background: linear-gradient(135deg, #f97316, #ec4899);
  box-shadow: 0 22px 42px rgba(236, 72, 153, 0.38);
}

.player-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: #6b7280;
  font-size: 14px;
}

.player-status {
  color: #f97316;
  font-weight: 900;
}

.detail-info-card {
  padding: 22px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info-card h1 {
  margin: 20px 0 12px;
  color: #111827;
  font-size: 30px;
  line-height: 1.2;
}

.detail-meta-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.detail-meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ffedd5;
  color: #6b7280;
}

.detail-meta-list strong {
  color: #111827;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.detail-tags span {
  color: #ea580c;
  background: #ffedd5;
}

.content-card {
  margin-top: 28px;
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 26px;
}

.content-card p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 1.95;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.site-footer {
  color: #fff;
  background: linear-gradient(135deg, #111827, #1f2937 60%, #431407);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr 0.8fr;
  gap: 34px;
  padding: 52px 0 42px;
}

.footer-logo {
  margin-bottom: 14px;
  font-size: 22px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: #d1d5db;
  line-height: 1.8;
}

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

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #ec4899);
  box-shadow: 0 14px 34px rgba(236, 72, 153, 0.28);
}

.back-top.show {
  display: block;
}

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

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

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

  .hero-poster-stack {
    display: none;
  }

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

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

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

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

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

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

  .hero {
    min-height: 610px;
  }

  .hero-content {
    padding: 30px 0 70px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-controls {
    right: 14px;
    bottom: 20px;
  }

  .hero-dots {
    left: 16px;
    bottom: 34px;
    transform: none;
  }

  .heading-row,
  .category-block-head,
  .player-caption {
    align-items: start;
    flex-direction: column;
  }

  .category-grid,
  .movie-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .category-tile {
    min-height: 130px;
    padding: 18px;
  }

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

  .movie-card-body h3 {
    min-height: 40px;
    font-size: 15px;
  }

  .movie-card-body p {
    min-height: 48px;
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

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

  .rank-row a {
    grid-template-columns: 36px 52px minmax(0, 1fr);
  }

  .rank-play {
    display: none;
  }

  .detail-info-card h1 {
    font-size: 24px;
  }

  .content-card {
    padding: 20px;
  }

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