* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --orange: #f97316;
  --red: #ef4444;
  --pink: #ec4899;
  --yellow: #facc15;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #f1f5f9;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red), var(--pink));
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.28);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: var(--red);
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand-copy small {
  opacity: 0.88;
  font-size: 12px;
}

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

.main-nav > a,
.nav-dropdown > button {
  color: #ffffff;
  border: 0;
  padding: 8px 0;
  background: transparent;
  font-weight: 700;
}

.main-nav > a:hover,
.nav-dropdown > button:hover {
  color: #fef3c7;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 210px;
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  border-radius: 16px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
}

.nav-dropdown-menu a:hover {
  color: var(--orange);
  background: #fff7ed;
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.top-search input {
  width: 170px;
  border: 0;
  outline: 0;
  padding: 8px 10px;
  color: #ffffff;
  background: transparent;
}

.top-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.top-search button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.22s ease;
}

.top-search button {
  color: var(--red);
  background: #ffffff;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #fb923c 0%, #f43f5e 46%, #db2777 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 52px;
  align-items: center;
  min-height: 620px;
  padding: 72px 0;
}

.hero-blob {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(26px);
}

.hero-blob-one {
  width: 280px;
  height: 280px;
  left: 7%;
  top: 9%;
}

.hero-blob-two {
  width: 420px;
  height: 420px;
  right: -80px;
  bottom: -110px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #f97316;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero .section-eyebrow,
.page-hero .section-eyebrow,
.detail-hero .section-eyebrow {
  color: #fff7ed;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
}

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

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.primary-button:hover,
.top-search button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}

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

.hero-chips a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-carousel {
  position: relative;
  min-height: 550px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(88, 28, 135, 0.32);
  background: rgba(255, 255, 255, 0.16);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

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

.hero-slide-overlay,
.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.86));
}

.hero-slide-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 34px;
  display: grid;
  gap: 12px;
}

.hero-kicker {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(239, 68, 68, 0.9);
  font-size: 13px;
  font-weight: 900;
}

.hero-slide-copy strong {
  font-size: 34px;
  line-height: 1.15;
}

.hero-slide-copy em {
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
}

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

.hero-slide-meta span,
.detail-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.hero-slide-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 28px;
  bottom: 14px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.48);
}

.hero-dots button.is-active {
  width: 26px;
  background: #ffffff;
}

.content-section {
  padding: 68px 0;
  background: #ffffff;
}

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

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.section-head a {
  color: var(--red);
  font-weight: 900;
}

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

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

.movie-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.medium-grid .poster-frame,
.ranking-strip .poster-frame,
.ranking-list .poster-frame {
  aspect-ratio: 16 / 10;
}

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

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

.rank-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(239, 68, 68, 0.95);
  font-size: 12px;
  font-weight: 900;
}

.play-chip {
  top: auto;
  left: auto;
  right: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--red);
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.movie-card-body strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-body em {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #d1d5db;
}

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

.tag-list span {
  color: var(--red);
  background: #fff1f2;
}

.ranking-strip,
.ranking-list {
  display: grid;
  gap: 18px;
}

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

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

.movie-card-compact {
  grid-template-columns: 180px minmax(0, 1fr);
  grid-template-rows: none;
}

.movie-card-compact .poster-frame {
  aspect-ratio: auto;
  min-height: 152px;
}

.movie-card-compact .movie-card-body strong {
  min-height: auto;
}

.page-hero,
.detail-hero {
  color: #ffffff;
  background: linear-gradient(120deg, #fb923c, #ef4444, #db2777);
}

.page-hero .wrap {
  padding: 88px 0;
}

.compact-hero .wrap {
  padding: 64px 0;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 0.6fr)) auto;
  gap: 14px;
  align-items: end;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid #fed7aa;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  outline: 0;
  padding: 11px 12px;
  color: #111827;
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.result-count {
  padding: 12px 14px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  font-weight: 900;
  white-space: nowrap;
}

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

.category-tile {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-tile-cover {
  position: relative;
  min-height: 250px;
  overflow: hidden;
}

.category-tile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile-cover span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  border-radius: 999px;
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(239, 68, 68, 0.92);
  font-weight: 900;
}

.category-tile-body {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 24px;
}

.category-tile-body h2 {
  margin: 0;
  font-size: 26px;
}

.category-tile-body p {
  margin: 0;
  color: var(--muted);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--red);
  background: #fff1f2;
  font-size: 13px;
  font-weight: 800;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 64px 0;
}

.detail-poster {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.25);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(88, 28, 135, 0.32);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.detail-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

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

.detail-copy .primary-button {
  margin-top: 28px;
}

.player-section {
  padding-top: 48px;
  background: #111827;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.48));
  cursor: pointer;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: var(--shadow);
}

.play-overlay strong {
  font-size: 20px;
}

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

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

.detail-article,
.detail-side-card {
  border-radius: 28px;
  padding: 30px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-article h2,
.detail-side-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-article p {
  margin: 0 0 24px;
  color: #374151;
  font-size: 18px;
}

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

.detail-side-card dt {
  color: #6b7280;
  font-size: 13px;
  font-weight: 900;
}

.detail-side-card dd {
  margin: -8px 0 6px;
  color: #111827;
  font-weight: 800;
}

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

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

.footer-brand {
  color: #ffffff;
  font-size: 20px;
}

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

.site-footer p {
  margin: 12px 0 0;
  color: #cbd5e1;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

[data-movie-card].is-hidden {
  display: none;
}

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

  .hero-carousel {
    min-height: 470px;
  }

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

  .medium-grid,
  .ranking-list,
  .category-overview,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-strip {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

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

  .main-nav {
    order: 4;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
  }

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

  .nav-dropdown-menu {
    position: static;
    display: none;
    margin-top: 8px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
  }

  .top-search {
    order: 5;
    width: 100%;
  }

  .top-search input {
    width: 100%;
    flex: 1;
  }

  .hero-inner {
    min-height: auto;
    padding: 52px 0;
  }

  .hero-carousel {
    min-height: 430px;
  }

  .featured-grid,
  .movie-grid,
  .medium-grid,
  .ranking-list,
  .category-overview,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .category-tile-cover {
    min-height: 280px;
  }

  .movie-card-compact {
    grid-template-columns: 145px minmax(0, 1fr);
  }
}

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

  .brand-copy strong {
    font-size: 18px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-copy p {
    font-size: 17px;
  }

  .hero-actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-carousel {
    min-height: 380px;
    border-radius: 22px;
  }

  .hero-slide-copy strong {
    font-size: 26px;
  }

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

  .movie-card-compact .poster-frame {
    aspect-ratio: 16 / 10;
  }

  .detail-hero-grid {
    padding: 36px 0;
  }

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

  .detail-article,
  .detail-side-card {
    padding: 22px;
  }
}
