:root {
  --bg: #fff7ed;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.10);
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #db2777;
  --rose: #e11d48;
  --slate: #0f172a;
  --slate-2: #1e293b;
  --soft: rgba(255, 255, 255, 0.18);
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.16), transparent 28rem),
    radial-gradient(circle at 85% 8%, rgba(219, 39, 119, 0.14), transparent 26rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.96), rgba(219, 39, 119, 0.96), rgba(225, 29, 72, 0.96));
  color: #fff;
  box-shadow: 0 12px 32px rgba(225, 29, 72, 0.18);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  transition: transform 0.3s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.08) rotate(8deg);
}

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

.nav-link,
.mobile-link {
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  transition: all 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  color: var(--orange);
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 10px;
  background: #fff;
}

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

.mobile-nav.open {
  display: grid;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 24%, rgba(255, 255, 255, 0.26), transparent 14rem),
    linear-gradient(120deg, #f97316 0%, #db2777 54%, #e11d48 100%);
  color: #fff;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(22px);
  pointer-events: none;
}

.hero::before {
  left: -120px;
  top: -140px;
}

.hero::after {
  right: -120px;
  bottom: -160px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  align-items: center;
  gap: 42px;
  padding: 74px 0 86px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  font-size: 14px;
  font-weight: 800;
}

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

.hero h1 span {
  display: inline-block;
  padding: 0 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.20);
}

.hero p {
  width: min(680px, 100%);
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(18px, 2.3vw, 25px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

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

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

.btn-primary {
  color: var(--orange-dark);
  background: #fff;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
}

.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.20);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-search {
  width: min(560px, 100%);
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px);
}

.hero-search input,
.toolbar input,
.toolbar select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 13px 16px;
  font: inherit;
}

.hero-search button {
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(90deg, var(--orange-dark), var(--pink));
}

.hero-stage {
  position: relative;
  min-height: 460px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 18px;
  align-items: stretch;
  opacity: 0;
  transform: translateX(20px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-poster,
.hero-copy {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.20), 0 24px 50px rgba(15, 23, 42, 0.20);
  backdrop-filter: blur(18px);
}

.hero-poster {
  position: relative;
  min-height: 430px;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
}

.image-error {
  opacity: 0;
}

.hero-poster::after,
.poster::after,
.detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(15, 23, 42, 0.68));
  pointer-events: none;
}

.hero-copy {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
}

.hero-copy p {
  font-size: 16px;
  margin: 0 0 18px;
}

.hero-mini-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.meta-line {
  color: var(--muted);
}

.hero-mini-meta span,
.meta-line span,
.tag-list span,
.detail-tags span,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.meta-line span,
.tag-list span,
.detail-tags span,
.breadcrumb a,
.breadcrumb span {
  background: #fff7ed;
  color: #9a3412;
}

.hero-dots {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

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

.hero-dots button.active {
  width: 32px;
  background: #fff;
}

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

.section {
  padding: 58px 0;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  color: var(--pink);
  font-weight: 800;
}

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

.movie-card,
.category-card,
.rank-row,
.info-panel,
.player-card,
.detail-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.movie-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 58px rgba(225, 29, 72, 0.16);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.45), transparent 10rem),
    linear-gradient(135deg, #fb923c, #db2777 56%, #0f172a);
}

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

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

.poster-shine {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.38), transparent 14rem);
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shine {
  opacity: 1;
}

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--orange-dark);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 4;
  min-width: 40px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.24);
}

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

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.28;
}

.card-body p {
  min-height: 52px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

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

.tag-list span,
.detail-tags span {
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  padding: 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.26), transparent 8rem),
    linear-gradient(135deg, #f97316, #db2777 54%, #0f172a);
  transition: transform 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.category-card span {
  align-self: flex-start;
  margin-top: 20px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.page-hero {
  margin: 42px 0 10px;
  padding: 44px;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.25), transparent 16rem),
    linear-gradient(120deg, var(--orange), var(--pink), var(--slate));
  box-shadow: var(--shadow);
}

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

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.toolbar {
  position: sticky;
  top: 84px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  margin: 26px 0;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(18px);
}

.toolbar input,
.toolbar select {
  border: 1px solid var(--line);
}

.no-results {
  display: none;
  padding: 34px;
  border-radius: 22px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.no-results.show {
  display: block;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 98px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: 0 18px 44px rgba(219, 39, 119, 0.13);
}

.rank-num {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-size: 18px;
  font-weight: 900;
}

.rank-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #fb923c, #db2777);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.rank-score {
  min-width: 90px;
  text-align: right;
  color: var(--pink);
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) 360px;
  gap: 26px;
  align-items: start;
  margin-bottom: 42px;
}

.player-card {
  position: relative;
  background: #020617;
  border-color: rgba(255, 255, 255, 0.08);
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 20%, rgba(249, 115, 22, 0.20), transparent 18rem),
    #020617;
  cursor: pointer;
}

.video-box video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.72));
  pointer-events: none;
}

.video-play {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: var(--orange-dark);
  background: rgba(255, 255, 255, 0.94);
  font-size: 32px;
  font-weight: 900;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.35);
}

.video-box.playing .video-overlay {
  display: none;
}

.player-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px;
  color: rgba(255, 255, 255, 0.78);
}

.detail-card {
  padding: 26px;
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.detail-card .lead {
  color: var(--slate-2);
  font-size: 18px;
  font-weight: 700;
}

.detail-cover {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #fb923c, #db2777, #0f172a);
  box-shadow: var(--shadow);
}

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

.info-panel {
  padding: 22px;
}

.info-panel h2,
.info-panel h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.info-panel p {
  margin: 0 0 14px;
  color: var(--slate-2);
}

.detail-side {
  display: grid;
  gap: 18px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.detail-stats span {
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
  text-align: center;
}

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

.content-block {
  display: grid;
  gap: 18px;
}

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

  .hero-stage {
    min-height: 520px;
  }

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

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

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

  .menu-button {
    display: block;
  }

  .nav-wrap {
    height: 64px;
  }

  .logo {
    font-size: 20px;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    min-height: 320px;
  }

  .hero-poster img {
    min-height: 320px;
  }

  .hero-copy {
    min-height: 260px;
  }

  .hero-search,
  .toolbar,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .hero-search {
    border-radius: 24px;
  }

  .hero-search button {
    width: 100%;
  }

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

  .section {
    padding: 38px 0;
  }

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

  .page-hero {
    padding: 28px;
    margin-top: 28px;
  }

  .rank-row {
    grid-template-columns: 48px 1fr;
  }

  .rank-thumb {
    display: none;
  }

  .rank-score {
    text-align: left;
  }
}

@media (max-width: 460px) {
  main,
  .nav-wrap,
  .mobile-nav,
  .hero-inner {
    width: min(100% - 22px, 1180px);
  }

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

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

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