* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #f97316, #ef4444, #ec4899);
  box-shadow: 0 16px 32px rgba(185, 28, 28, 0.22);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #f97316;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.brand strong,
.brand em {
  display: block;
  font-style: normal;
  line-height: 1.2;
}

.brand strong {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand em {
  font-size: 12px;
  opacity: 0.9;
}

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

.desktop-nav a,
.nav-group > button {
  color: #fff;
  font: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.nav-group > button:hover {
  color: #fef08a;
}

.nav-group {
  position: relative;
  display: inline-block;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 210px;
  padding: 8px;
  color: #374151;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-group:hover .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

.nav-menu a:hover {
  color: #ea580c;
  background: #fff7ed;
}

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

.top-search input {
  width: 190px;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
}

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

.top-search button,
.mobile-panel button {
  border: 0;
  cursor: pointer;
}

.top-search button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #ef4444;
  background: #fff;
  border-radius: 999px;
  font-size: 18px;
}

.menu-toggle {
  display: none;
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 28px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-panel form {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 16px;
}

.mobile-panel input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
}

.mobile-panel button {
  padding: 10px 14px;
  color: #ea580c;
  background: #fff;
  border-radius: 12px;
  font-weight: 700;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  min-height: 620px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(120deg, #fb923c, #ef4444 48%, #db2777);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) brightness(0.68);
  transform: scale(1.03);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.22), transparent 22%),
    radial-gradient(circle at 82% 12%, rgba(253, 186, 116, 0.35), transparent 25%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(127, 29, 29, 0.62), rgba(219, 39, 119, 0.42));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 48px;
  min-height: 620px;
  padding: 64px 0;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.1;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

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

.btn-primary {
  color: #ea580c;
  background: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
}

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

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

.hero-poster {
  position: relative;
  padding: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(14px);
}

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

.hero-meta {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(17, 24, 39, 0.68);
  border-radius: 18px;
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  right: calc((100% - min(1180px, calc(100% - 32px))) / 2);
  bottom: 34px;
  display: flex;
  gap: 10px;
}

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

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

.section {
  padding: 72px 0;
}

.section-white {
  background: #fff;
}

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

.section-dark {
  color: #fff;
  background: linear-gradient(180deg, #1f2937, #111827);
}

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

.section-head h2,
.section-head h1,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-dark .section-head h2,
.section-dark .section-head h1 {
  color: #fff;
}

.section-head p,
.page-hero p,
.detail-title p {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.7;
}

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(249, 115, 22, 0.38);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fecdd3);
}

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

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

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

.play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #ef4444;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: #fff;
  background: #ef4444;
  border-radius: 999px;
  font-size: 12px;
}

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

.card-body strong {
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.card-body em {
  color: #f97316;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.card-desc {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
}

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

.tag-row span,
.meta-pills span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  color: #c2410c;
  background: #ffedd5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444 54%, #ec4899);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(220, 38, 38, 0.18);
}

.category-card:after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -44px;
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.page-hero {
  padding: 58px 0;
  color: #fff;
  background: linear-gradient(120deg, #f97316, #ef4444, #ec4899);
}

.page-hero h1,
.page-hero p {
  color: #fff;
}

.page-hero p {
  max-width: 760px;
  opacity: 0.92;
}

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

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

.filter-bar,
.search-panel {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
}

.filter-bar input,
.search-panel input,
.search-panel select {
  width: 100%;
  padding: 13px 15px;
  color: #111827;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  outline: none;
}

.search-panel button {
  min-width: 112px;
  color: #fff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
}

.detail-hero {
  padding: 52px 0;
  color: #fff;
  background: linear-gradient(120deg, #111827, #7f1d1d 48%, #9d174d);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 36px;
  align-items: start;
}

.detail-cover {
  overflow: hidden;
  padding: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
}

.detail-title h1,
.detail-title p {
  color: #fff;
}

.detail-title p {
  color: rgba(255, 255, 255, 0.82);
}

.meta-pills,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.meta-pills span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.player-section {
  padding-top: 56px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  background: rgba(2, 6, 23, 0.55);
  border: 0;
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.play-overlay span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  color: #ef4444;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  font-size: 42px;
}

.content-card {
  padding: 30px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

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

.content-card p {
  margin: 0 0 18px;
  color: #4b5563;
  line-height: 1.9;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 60px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.ranking-row b {
  color: #ef4444;
  font-size: 24px;
}

.ranking-row img {
  width: 86px;
  height: 116px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-row strong {
  display: block;
  color: #111827;
  font-size: 18px;
}

.ranking-row span {
  color: #6b7280;
  line-height: 1.65;
}

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

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

.site-footer h3,
.site-footer h4 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

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

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

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

.empty-state {
  padding: 42px;
  color: #6b7280;
  text-align: center;
  background: #fff;
  border-radius: 24px;
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-poster {
    max-width: 420px;
  }

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

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

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

  .brand strong {
    font-size: 19px;
  }

  .brand em {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 680px;
  }

  .hero-inner {
    gap: 28px;
    padding: 40px 0 76px;
  }

  .hero-dots {
    right: 18px;
    bottom: 22px;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: block;
  }

  .section-actions {
    margin-top: 18px;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar,
  .search-panel {
    display: grid;
  }

  .ranking-row {
    grid-template-columns: 44px 70px minmax(0, 1fr);
  }

  .ranking-row .btn {
    grid-column: 2 / 4;
  }
}
