:root {
  --rose: #f43f5e;
  --orange: #fb923c;
  --pink: #ec4899;
  --cyan: #06b6d4;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --card: rgba(255, 255, 255, 0.86);
  --line: rgba(244, 63, 94, 0.14);
  --shadow: 0 18px 45px rgba(244, 63, 94, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(251, 146, 60, 0.22), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(236, 72, 153, 0.18), transparent 28%),
    linear-gradient(135deg, #fff7ed 0%, #fff1f2 48%, #fff7ed 100%);
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 196px;
}

.brand-mark,
.footer-brand span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 12px 25px rgba(244, 63, 94, 0.26);
}

.brand-text strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a,
.mobile-menu a {
  border-radius: 14px;
  padding: 10px 16px;
  color: #374151;
  font-weight: 700;
  transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.mobile-menu a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.22);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  color: var(--rose);
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
  background: rgba(255, 255, 255, 0.94);
  padding: 10px 16px 18px;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.hero {
  position: relative;
  overflow: hidden;
  margin: 28px auto 0;
  border-radius: 34px;
  min-height: 560px;
  color: #fff;
  background: #0f172a;
  box-shadow: 0 28px 70px rgba(244, 63, 94, 0.25);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
  background-image:
    linear-gradient(100deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.74) 45%, rgba(15, 23, 42, 0.18) 100%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

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

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 34px;
  padding: 56px;
}

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

.hero-kicker,
.section-eyebrow,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #be123c;
  background: #ffe4e6;
}

.hero-kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags {
  margin: 22px 0 0;
}

.hero-tags span,
.tag-list span,
.info-pill {
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.8);
  color: #be123c;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 16px;
  padding: 13px 20px;
  font-weight: 900;
  transition: 0.25s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 14px 32px rgba(244, 63, 94, 0.28);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.btn-light {
  color: var(--rose);
  background: #fff;
  box-shadow: 0 12px 25px rgba(244, 63, 94, 0.12);
}

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

.hero-media {
  position: relative;
  justify-self: end;
  width: min(430px, 100%);
}

.hero-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  aspect-ratio: 4 / 5;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.36);
}

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

.hero-card-float {
  position: absolute;
  left: -42px;
  bottom: 42px;
  width: 250px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.hero-card-float b,
.hero-card-float small {
  display: block;
}

.hero-card-float small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-controls {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.hero-dots button,
.hero-arrow {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  transition: 0.25s ease;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 999px;
}

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

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  font-size: 20px;
}

.page-hero,
.detail-hero {
  margin-top: 28px;
  border-radius: 32px;
  padding: 46px;
  background:
    radial-gradient(circle at 90% 10%, rgba(251, 146, 60, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 242, 0.82));
  box-shadow: var(--shadow);
}

.page-hero h1,
.detail-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.page-hero p,
.detail-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

section {
  margin-top: 42px;
}

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

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.035em;
}

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

.section-link {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 15px;
  color: var(--rose);
  background: #fff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.12);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.1);
  transition: 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 46px rgba(244, 63, 94, 0.18);
}

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

.movie-card.minimal .poster-frame,
.movie-grid.dense .poster-frame {
  aspect-ratio: 4 / 5;
}

.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);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 10%, rgba(15, 23, 42, 0.78));
  transition: opacity 0.28s ease;
}

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

.card-type,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.card-type {
  top: 12px;
  right: 12px;
  color: #fff;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(10px);
}

.rank-badge {
  top: 12px;
  left: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.play-chip {
  left: 50%;
  bottom: 18px;
  opacity: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  transform: translateX(-50%) translateY(8px);
  transition: 0.25s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  color: #9f1239;
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.32;
}

.movie-card h3 a:hover {
  color: var(--rose);
}

.movie-line {
  display: -webkit-box;
  min-height: 44px;
  margin: 9px 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.22), transparent 42%),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 35px rgba(244, 63, 94, 0.12);
  transition: 0.25s ease;
}

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

.category-card strong {
  display: block;
  font-size: 22px;
}

.category-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.category-card span {
  color: var(--rose);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 24px 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.1);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 18px;
  padding: 0 15px;
  background: #fff;
}

.search-box span {
  color: var(--rose);
  font-size: 20px;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  height: 48px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-chips button {
  border: 0;
  border-radius: 999px;
  padding: 10px 13px;
  color: #9f1239;
  background: #ffe4e6;
  font-weight: 800;
  transition: 0.2s ease;
}

.filter-chips button.is-active,
.filter-chips button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.no-results {
  display: none;
  border-radius: 20px;
  padding: 26px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.no-results.is-visible {
  display: block;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 24px;
}

.ranking-panel {
  border-radius: 26px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

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

.compact-card {
  display: grid;
  grid-template-columns: 42px 70px 1fr;
  align-items: center;
  gap: 13px;
  border-radius: 18px;
  padding: 10px;
  background: #fff;
  transition: 0.22s ease;
}

.compact-card:hover {
  transform: translateX(5px);
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.13);
}

.compact-card strong {
  color: var(--rose);
  font-size: 17px;
}

.compact-card img {
  width: 70px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
}

.compact-card b,
.compact-card small {
  display: block;
}

.compact-card b {
  line-height: 1.35;
}

.compact-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--rose);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 4 / 5;
  box-shadow: 0 20px 45px rgba(244, 63, 94, 0.18);
}

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

.detail-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.player-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.78), rgba(244, 63, 94, 0.28));
}

.player-overlay.is-hidden {
  display: none;
}

.player-button {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 999px;
  padding: 16px 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 18px 46px rgba(244, 63, 94, 0.4);
  font-size: 18px;
  font-weight: 900;
}

.content-panel {
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.content-panel h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.content-panel p {
  margin: 0 0 16px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.88;
}

.content-panel p:last-child {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 64px;
  color: #e5e7eb;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 32px;
  padding: 44px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #fff;
  font-size: 20px;
}

.site-footer p {
  max-width: 420px;
  margin: 0;
  color: #9ca3af;
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #fb7185;
  font-size: 17px;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #d1d5db;
}

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

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

@media (max-width: 1080px) {
  .movie-grid,
  .movie-grid.dense {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .feature-layout {
    grid-template-columns: 1fr;
  }
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero,
  .hero-slide,
  .hero-grid {
    min-height: 660px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 34px 24px 92px;
  }

  .hero-media {
    justify-self: start;
    width: min(310px, 100%);
  }

  .hero-card-float {
    left: 18px;
    bottom: -24px;
  }

  .hero-controls {
    left: 24px;
    right: 24px;
  }

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

  .filter-chips {
    justify-content: flex-start;
  }

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

  .detail-cover {
    max-width: 260px;
  }

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

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

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    font-size: 11px;
  }

  .page-hero,
  .detail-hero {
    padding: 28px;
  }

  .movie-grid,
  .movie-grid.dense,
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

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

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-line {
    font-size: 13px;
  }

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

  .compact-card {
    grid-template-columns: 34px 58px 1fr;
  }

  .compact-card img {
    width: 58px;
    height: 72px;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .movie-grid.dense,
  .category-grid {
    grid-template-columns: 1fr;
  }
}
