:root {
  --bg: #fff7f4;
  --bg-soft: #fff1ed;
  --text: #20202a;
  --muted: #6f6573;
  --line: rgba(246, 122, 92, 0.16);
  --card: rgba(255, 255, 255, 0.86);
  --red: #ef4444;
  --orange: #f97316;
  --pink: #ec4899;
  --shadow: 0 24px 60px rgba(175, 68, 45, 0.15);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(236, 72, 153, 0.16), transparent 30%),
    radial-gradient(circle at 90% 5%, rgba(249, 115, 22, 0.18), transparent 32%),
    linear-gradient(135deg, #fff8f1 0%, #fff1f3 45%, #fff7ec 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(202, 89, 58, 0.12);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--pink));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.24);
}

.brand-text,
.footer-brand {
  font-size: 28px;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #4f4652;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff3ef;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #412c32;
  border-radius: 99px;
}

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

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 244, 240, 0.9);
  font-weight: 800;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 36px;
  color: #fff;
  background: linear-gradient(135deg, #fb3b55 0%, #f97316 52%, #ec4899 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 50%),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.24), transparent 30%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.28;
  background: #fff;
}

.hero-glow.one {
  top: -120px;
  left: -80px;
}

.hero-glow.two {
  right: -90px;
  bottom: -160px;
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: stretch;
}

.hero-slider {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 32px;
  align-items: center;
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

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

.hero-kicker,
.section-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 900;
}

.hero h1,
.hero h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero h2 + .hero-desc,
.hero h1 + h2 + .hero-desc {
  margin-top: 22px;
}

.hero-desc {
  max-width: 620px;
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags a,
.tag-row span {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

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

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

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

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--pink));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.28);
}

.hero .btn.primary {
  background: #fff;
  color: #e9434c;
}

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

.hero-poster {
  position: relative;
  min-height: 500px;
  border-radius: 34px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 35px 90px rgba(50, 10, 20, 0.38);
  background: rgba(255, 255, 255, 0.22);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.45));
}

.hero-play,
.play-circle {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--pink));
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
}

.hero-play {
  left: 28px;
  bottom: 28px;
  width: 68px;
  height: 68px;
  z-index: 2;
  font-size: 24px;
}

.hero-panel {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.hero-panel p {
  margin: 0 0 18px;
  font-weight: 900;
  font-size: 20px;
}

.hero-cats {
  display: grid;
  gap: 10px;
}

.hero-cats a,
.hero-rank {
  display: block;
  padding: 14px 16px;
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-cats a:hover,
.hero-rank:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateX(2px);
}

.hero-rank {
  margin-top: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.24);
}

.hero-controls {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 28px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  transition: width 0.2s ease, background 0.2s ease;
}

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

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

.section-wrap {
  padding: 58px 0;
}

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.intro-strip p:last-child {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

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

.section-head.compact {
  align-items: center;
}

.section-head h2,
.catalog-tools h2,
.page-hero h1,
.detail-info h1,
.detail-text h2,
.hero-panel h2 {
  margin: 0;
}

.section-head h2,
.catalog-tools h2,
.page-hero h1,
.detail-info h1 {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.05em;
}

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

.section-kicker {
  color: var(--red);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 16px 40px rgba(153, 72, 54, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.24), rgba(236, 72, 153, 0.18));
}

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

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

.poster-type,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
}

.poster-type {
  left: 12px;
  bottom: 12px;
  padding: 7px 11px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  font-size: 12px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.card-content {
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.card-meta a {
  color: var(--red);
}

.card-content h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

.card-content p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span,
.detail-tags a {
  color: #9f3b39;
  background: #fff1eb;
}

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

.category-grid,
.wide-category-grid {
  display: grid;
  gap: 18px;
}

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

.category-card,
.category-wide,
.ranking-box,
.catalog-tools,
.detail-text article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 40px rgba(153, 72, 54, 0.10);
}

.category-card {
  overflow: hidden;
  padding: 0 0 18px;
}

.category-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.category-card span,
.category-wide span {
  display: block;
  margin: 16px 18px 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p,
.category-wide p {
  margin: 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.ranking-box {
  padding: 22px;
  position: sticky;
  top: 94px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff7f4;
}

.rank-row span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.rank-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

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

.small-hero {
  text-align: center;
}

.small-hero p:last-child {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--muted);
  line-height: 1.85;
}

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

.category-wide {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  align-items: center;
}

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

.category-posters img {
  height: 120px;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  margin-bottom: 22px;
}

.tool-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.tool-fields input,
.tool-fields select {
  height: 46px;
  min-width: 170px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: #3c333d;
  background: #fff;
  outline: none;
}

.tool-fields input:focus,
.tool-fields select:focus {
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.10);
}

.empty-tip {
  display: none;
  width: 100%;
  color: var(--muted);
  font-weight: 800;
}

.empty-tip.is-visible {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 800;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.player-card,
.detail-info {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.player-card {
  padding: 14px;
}

.player-stage {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #09090f;
}

.player-stage video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #09090f;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #09090f;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.64;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.62));
}

.play-circle {
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  transform: translate(-50%, -50%);
  font-size: 30px;
}

.player-card.is-playing .player-cover {
  display: none;
}

.detail-info {
  padding: 30px;
}

.detail-info h1 {
  margin: 0 0 14px;
}

.detail-one-line {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
}

.detail-meta div {
  padding: 14px;
  border-radius: 16px;
  background: #fff7f4;
}

.detail-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-meta dd {
  margin: 5px 0 0;
  font-weight: 900;
}

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

.detail-text article {
  padding: 26px;
}

.detail-text p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 17px;
}

.site-footer {
  margin-top: 40px;
  padding: 38px 0;
  background: #28151a;
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 26px;
}

.footer-inner p {
  max-width: 620px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: start;
}

.footer-links a {
  font-weight: 800;
}

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

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

  .hero-panel,
  .ranking-box {
    position: static;
  }

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    padding-top: 28px;
  }

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

  .hero-slide {
    gap: 22px;
  }

  .hero-poster {
    min-height: 380px;
    transform: none;
  }

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

  .catalog-tools,
  .intro-strip,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .tool-fields {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 64px;
  }

  .brand-text {
    font-size: 24px;
  }

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

  .hero h1,
  .hero h2 {
    font-size: 42px;
  }

  .hero-desc {
    font-size: 17px;
  }

  .movie-grid,
  .wide-category-grid,
  .detail-text,
  .category-grid,
  .detail-meta {
    grid-template-columns: 1fr;
  }

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

  .category-posters img {
    height: 96px;
  }

  .tool-fields input,
  .tool-fields select {
    width: 100%;
  }

  .section-wrap {
    padding: 38px 0;
  }
}
