:root {
  --rose: #f43f5e;
  --pink: #ec4899;
  --orange: #f97316;
  --amber: #fbbf24;
  --bg: #fff7fb;
  --panel: rgba(255, 255, 255, 0.88);
  --text: #171717;
  --muted: #6b7280;
  --line: rgba(244, 63, 94, 0.14);
  --shadow: 0 20px 55px rgba(244, 63, 94, 0.14);
  --soft-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.14), transparent 35rem),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 32rem),
    linear-gradient(135deg, #fff1f2 0%, #fff7ed 45%, #fdf2f8 100%);
}

body.is-menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.24);
}

.header-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--rose);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

.logo-text {
  font-size: clamp(18px, 2vw, 24px);
}

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

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
  color: #fef08a;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-form input {
  width: 230px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  outline: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 44px 10px 16px;
  backdrop-filter: blur(14px);
}

.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.search-form button {
  position: absolute;
  right: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

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

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

.mobile-nav {
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

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

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: linear-gradient(120deg, #f43f5e, #ec4899 46%, #f97316);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.28;
  background: #ffffff;
}

.hero::before {
  width: 26rem;
  height: 26rem;
  top: -7rem;
  left: -4rem;
}

.hero::after {
  width: 34rem;
  height: 34rem;
  right: -10rem;
  bottom: -12rem;
  background: #fef3c7;
}

.hero-slide {
  display: none;
  position: relative;
  z-index: 2;
  min-height: 620px;
  align-items: center;
  padding: 72px 0;
}

.hero-slide.is-active {
  display: flex;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy {
  max-width: 720px;
  margin: 0 0 28px;
  font-size: clamp(17px, 2.4vw, 24px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  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: var(--rose);
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background: #fef3c7;
}

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

.hero-search {
  max-width: 620px;
  margin-top: 26px;
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 0 14px;
}

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

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 900;
  color: var(--rose);
  background: #ffffff;
}

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

.hero-poster-glow {
  position: absolute;
  inset: 42px 26px 10px 26px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.24);
  filter: blur(36px);
}

.hero-poster {
  position: relative;
  width: min(100%, 430px);
  margin-left: auto;
  border: 10px solid rgba(255, 255, 255, 0.32);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
  transform: rotate(2deg);
  background: rgba(255, 255, 255, 0.18);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-poster-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(16px);
}

.hero-poster-info strong {
  display: block;
  font-size: 18px;
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 4;
  pointer-events: none;
}

.hero-controls-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

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

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}

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

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
  opacity: 0.6;
}

.hero-dot.is-active {
  width: 34px;
  opacity: 1;
  background: #ffffff;
}

.page-hero {
  padding: 64px 0 36px;
}

.page-hero-card {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 237, 0.82));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.section {
  padding: 58px 0;
}

.section-soft {
  background: rgba(255, 255, 255, 0.48);
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-title span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.22);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rose);
  font-weight: 900;
}

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

.feature-box {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.feature-box h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.feature-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 24px;
  border-radius: 28px;
  color: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: -60% auto auto -20%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.category-tile:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.16);
}

.category-tile h3,
.category-tile p {
  position: relative;
  z-index: 2;
}

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

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 52px rgba(244, 63, 94, 0.18);
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.24), rgba(249, 115, 22, 0.2));
}

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(244, 63, 94, 0.92);
  backdrop-filter: blur(12px);
}

.card-body {
  padding: 16px;
}

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

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.meta-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--rose);
  background: rgba(244, 63, 94, 0.08);
}

.card-desc {
  min-height: 3.2em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  color: #9f1239;
  background: rgba(255, 228, 230, 0.82);
}

.featured-card {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 28px;
  overflow: hidden;
  border-radius: 34px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.featured-card .featured-poster img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.featured-content {
  padding: clamp(24px, 4vw, 44px) clamp(24px, 5vw, 56px) clamp(24px, 4vw, 44px) 0;
}

.featured-content h3 {
  margin: 12px 0 16px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
}

.featured-content p {
  color: var(--muted);
  line-height: 1.82;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 86px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateX(5px);
  box-shadow: 0 18px 40px rgba(244, 63, 94, 0.16);
}

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

.rank-thumb {
  border-radius: 16px;
  overflow: hidden;
}

.rank-thumb img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.rank-copy h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr repeat(2, minmax(150px, 180px));
  gap: 12px;
  padding: 16px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 16px;
  outline: 0;
  background: #ffffff;
  padding: 12px 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(244, 63, 94, 0.62);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.filter-empty {
  display: none;
  padding: 32px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
}

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

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

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

.detail-hero {
  padding: 42px 0 28px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(230px, 340px) 1fr;
  gap: 34px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-main {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.detail-main h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.detail-desc {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.content-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: clamp(25px, 4vw, 34px);
}

.content-card p {
  margin: 0;
  color: #374151;
  line-height: 1.92;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.74));
  cursor: pointer;
  z-index: 3;
}

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

.player-button {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, background 0.22s ease;
}

.player-button:hover {
  transform: scale(1.08);
  background: #fef3c7;
}

.player-note {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  font-weight: 700;
}

.search-results-title {
  margin: 0 0 24px;
  font-size: 24px;
  color: var(--muted);
}

.cta-band {
  padding: 70px 0;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
}

.cta-band h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 48px);
}

.cta-band p {
  max-width: 760px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

.site-footer {
  padding: 38px 0;
  color: #ffffff;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 16px;
  color: rgba(255, 255, 255, 0.8);
}

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

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

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

  .mobile-panel .search-form {
    display: flex;
    width: 100%;
  }

  .mobile-panel .search-form input {
    width: 100%;
  }

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

  .hero-poster {
    margin: 0 auto;
  }

  .featured-content {
    padding: 28px;
  }

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

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

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

  .header-row {
    min-height: 64px;
  }

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

  .hero-slide {
    padding: 42px 0 84px;
  }

  .hero-layout {
    gap: 28px;
  }

  .hero-search {
    border-radius: 26px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search input {
    min-height: 46px;
  }

  .hero-poster-wrap {
    min-height: 360px;
  }

  .hero-poster {
    width: min(80vw, 320px);
    border-width: 7px;
  }

  .hero-controls-inner {
    align-items: end;
  }

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

  .feature-grid,
  .movie-grid,
  .movie-grid.small,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: auto 72px 1fr;
  }

  .rank-item .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

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

  .footer-links {
    justify-content: start;
  }
}
