:root {
  --bg: #fff7fb;
  --panel: #ffffff;
  --text: #273044;
  --muted: #6b7280;
  --line: #f0e3eb;
  --pink: #ec4899;
  --red: #ef4444;
  --orange: #f97316;
  --purple: #8b5cf6;
  --blue: #60a5fa;
  --shadow: 0 18px 45px rgba(236, 72, 153, 0.13);
  --shadow-soft: 0 12px 28px rgba(31, 41, 55, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fff7fb 0%, #f8fbff 48%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 251, 0.86);
  border-bottom: 1px solid rgba(244, 209, 226, 0.8);
  backdrop-filter: blur(20px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--pink));
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

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

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

.nav-link,
.mobile-nav-link {
  padding: 9px 16px;
  color: #4b5563;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--pink);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  color: #4b5563;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 20px 16px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  padding: 58px 20px 54px;
  background: linear-gradient(135deg, #ffe4ef 0%, #e0f2fe 45%, #f3e8ff 100%);
}

.blob {
  position: absolute;
  border-radius: 999px;
  opacity: 0.32;
  filter: blur(36px);
  mix-blend-mode: multiply;
  animation: blob 13s infinite;
}

.blob-a {
  top: 36px;
  left: 7%;
  width: 270px;
  height: 270px;
  background: #fecdd3;
}

.blob-b {
  top: 90px;
  right: 7%;
  width: 320px;
  height: 320px;
  background: #fed7aa;
  animation-delay: 2s;
}

.blob-c {
  bottom: 18px;
  left: 42%;
  width: 360px;
  height: 360px;
  background: #e9d5ff;
  animation-delay: 4s;
}

@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(26px, -34px) scale(1.08);
  }
  66% {
    transform: translate(-22px, 26px) scale(0.95);
  }
}

.hero-slider {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  z-index: 1;
}

.hero-slide {
  display: none;
  min-height: 540px;
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.58fr);
  gap: 36px;
  align-items: center;
  padding: 46px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.15);
  transform: scale(1.04);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 13px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

.hero-content h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p,
.page-hero p {
  max-width: 760px;
  margin: 0 0 24px;
  color: #4b5563;
  font-size: 18px;
}

.hero-tags,
.meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags span,
.detail-meta span {
  padding: 7px 12px;
  color: #7f1d1d;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  font-size: 14px;
}

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

.primary-button,
.ghost-button,
.outline-button,
.search-panel button,
.quick-search-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.search-panel button,
.quick-search-box button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--orange));
  box-shadow: 0 12px 25px rgba(239, 68, 68, 0.24);
}

.ghost-button,
.outline-button {
  color: #374151;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.primary-button:hover,
.ghost-button:hover,
.outline-button:hover,
.search-panel button:hover,
.quick-search-box button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 34px rgba(239, 68, 68, 0.22);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 420px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff1f2, #eef2ff);
  box-shadow: 0 24px 58px rgba(17, 24, 39, 0.18);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  color: #374151;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-size: 28px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--pink);
}

.quick-search {
  max-width: 1040px;
  margin: -34px auto 34px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.quick-search-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.quick-search-box input {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.quick-links a,
.toolbar-row a,
.category-samples a,
.detail-tags a {
  color: var(--pink);
  background: #fff1f7;
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.quick-links a:hover,
.toolbar-row a:hover,
.category-samples a:hover,
.detail-tags a:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.content-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 20px;
}

.soft-section {
  max-width: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 251, 0.72));
}

.soft-section > * {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
}

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

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

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

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

.movie-card,
.category-tile,
.category-panel,
.detail-info-card,
.side-card,
.ranking-block {
  background: #ffffff;
  border: 1px solid rgba(244, 209, 226, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

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

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

.card-cover,
.wide-cover,
.compact-cover,
.side-poster,
.hero-poster {
  background: linear-gradient(135deg, #ffe4ef, #dbeafe, #f3e8ff);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-cover img,
.wide-cover img,
.compact-cover img,
.side-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.duration {
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
}

.play-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 34px;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
}

.movie-card:hover .play-icon {
  opacity: 1;
  transform: scale(1);
  background: rgba(0, 0, 0, 0.24);
}

.card-body {
  padding: 16px;
}

.card-body h3,
.compact-info h3,
.wide-info h3 {
  margin: 0 0 8px;
  line-height: 1.35;
  font-size: 17px;
}

.card-body p,
.compact-info p,
.wide-info p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.meta-row {
  color: #6b7280;
  font-size: 13px;
  justify-content: space-between;
}

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

.category-tile,
.category-panel {
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.category-tile:after,
.category-panel:after {
  content: "";
  position: absolute;
  top: -44px;
  right: -44px;
  width: 130px;
  height: 130px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.11), rgba(249, 115, 22, 0.11));
  border-radius: 999px;
  transition: transform 0.3s ease;
}

.category-tile:hover,
.category-panel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile:hover:after,
.category-panel:hover:after {
  transform: scale(1.35);
}

.category-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 16px;
  font-weight: 900;
}

.category-tile h3,
.category-panel h2 {
  margin: 0 0 8px;
}

.category-tile p,
.category-panel p {
  margin: 0;
  color: var(--muted);
}

.category-panel-main {
  display: block;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.page-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 20px 36px;
}

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

.compact-hero p {
  margin-left: auto;
  margin-right: auto;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 10px;
  align-items: center;
}

.compact-cover {
  position: relative;
  height: 84px;
  overflow: hidden;
  border-radius: 16px;
}

.compact-info {
  min-width: 0;
}

.compact-info h3,
.compact-info p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.compact-info h3 {
  -webkit-line-clamp: 1;
}

.compact-info p {
  -webkit-line-clamp: 2;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 18px;
  padding: 12px;
}

.wide-cover {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 18px;
}

.wide-info {
  padding: 10px 10px 10px 0;
}

.wide-info h3 {
  font-size: 22px;
}

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

.tag-list span {
  padding: 6px 10px;
  color: var(--pink);
  background: #fff1f7;
  border-radius: 999px;
  font-size: 12px;
}

.ranking-block {
  padding: 18px;
}

.ranking-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ranking-block-head h2 {
  margin: 0;
  font-size: 20px;
}

.ranking-block-head a {
  color: var(--pink);
  font-weight: 800;
}

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

.search-section {
  padding-top: 24px;
}

.search-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.search-panel label {
  display: grid;
  gap: 7px;
  color: #4b5563;
  font-weight: 800;
  font-size: 14px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: var(--text);
  background: #fff7fb;
  border: 1px solid #f4d1e2;
  border-radius: 14px;
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.search-meta {
  margin: 10px 0 22px;
  color: var(--muted);
  font-weight: 800;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.detail-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 0;
}

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

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.detail-main {
  min-width: 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 28px;
  box-shadow: 0 24px 56px rgba(2, 6, 23, 0.26);
}

.player-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.34));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.player-overlay span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 38px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

.player-card.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #ffffff;
  text-align: center;
  font-weight: 800;
  pointer-events: none;
}

.detail-info-card {
  margin-top: 22px;
  padding: 28px;
}

.detail-info-card h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.detail-info-card h2 {
  margin: 28px 0 10px;
  font-size: 22px;
}

.detail-info-card p {
  color: #4b5563;
  margin: 0 0 12px;
}

.lead-text {
  margin-top: 22px !important;
  font-size: 18px;
  color: #374151 !important;
  font-weight: 700;
}

.detail-tags {
  margin-top: 24px;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

.side-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  min-height: 430px;
}

.side-card {
  padding: 22px;
}

.side-card h2 {
  margin: 0 0 16px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 12px;
  margin: 0;
}

.side-card dt {
  color: var(--muted);
}

.side-card dd {
  margin: 0;
  font-weight: 800;
}

.site-footer {
  margin-top: 36px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-brand p {
  color: var(--muted);
  max-width: 420px;
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-column h3 {
  margin: 0 0 14px;
}

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

.footer-column a {
  color: var(--muted);
}

.footer-column a:hover {
  color: var(--pink);
}

.footer-bottom {
  padding: 18px 20px 24px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

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

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

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

  .detail-side {
    grid-template-columns: 260px 1fr;
  }
}

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

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

  .hero-section {
    min-height: auto;
    padding-top: 30px;
  }

  .hero-slide,
  .hero-slide.is-active {
    grid-template-columns: 1fr;
    padding: 28px;
  }

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

  .movie-grid,
  .all-movie-grid,
  .category-grid,
  .category-panel-grid,
  .ranking-block-grid,
  .ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 620px) {
  .header-inner {
    padding: 12px 16px;
  }

  .brand-name {
    font-size: 18px;
  }

  .quick-search-box {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

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

  .movie-grid,
  .all-movie-grid,
  .category-grid,
  .category-panel-grid,
  .ranking-block-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .detail-info-card {
    padding: 22px;
  }
}
