:root {
  --pink: #ffb6c1;
  --blue: #87ceeb;
  --mint: #b9f6ca;
  --cream: #fff7fb;
  --ink: #1f2937;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.25);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 20px 60px rgba(31, 41, 55, 0.12);
  --shadow-soft: 0 12px 32px rgba(31, 41, 55, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 182, 193, 0.24), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(135, 206, 235, 0.24), transparent 32%),
    linear-gradient(180deg, #fff7fb 0%, #f8fbff 52%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 28px rgba(31, 41, 55, 0.08);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  flex: 0 0 auto;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 10px 25px rgba(255, 182, 193, 0.4);
}

.logo-text {
  font-size: clamp(18px, 2vw, 25px);
  background: linear-gradient(90deg, #fb7185, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-link {
  color: #475569;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fb7185;
  background: rgba(255, 182, 193, 0.15);
  transform: translateY(-1px);
}

.header-search,
.inline-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.inline-search input,
.search-page-form input,
.mobile-nav input {
  width: min(260px, 36vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.inline-search input:focus,
.search-page-form input:focus,
.mobile-nav input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.2);
}

.header-search button,
.inline-search button,
.search-page-form button,
.mobile-nav button {
  border: 0;
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  background: linear-gradient(135deg, #fb7185, #38bdf8);
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
}

.mobile-menu-button {
  display: none;
  border: 0;
  background: rgba(255, 182, 193, 0.16);
  color: #fb7185;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  cursor: pointer;
}

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

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.mobile-nav form {
  display: flex;
  gap: 8px;
}

.mobile-nav input {
  width: 100%;
}

.home-hero {
  padding: 24px 0 0;
}

.hero-slider {
  position: relative;
  min-height: min(720px, calc(100vh - 100px));
  overflow: hidden;
  border-radius: 0 0 42px 42px;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.08);
}

.hero-overlay,
.detail-bg-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.42), rgba(255, 255, 255, 0.22)),
    radial-gradient(circle at 20% 30%, rgba(255, 182, 193, 0.45), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(135, 206, 235, 0.42), transparent 32%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: min(720px, calc(100vh - 100px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 40px;
  align-items: center;
  padding: 64px 0 72px;
}

.hero-copy {
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fb7185;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.inner-hero .eyebrow,
.detail-info .eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  padding: 9px 14px;
  border-radius: 999px;
}

.hero-copy h1,
.detail-info h1,
.inner-hero h1 {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.98;
  margin: 24px 0;
  letter-spacing: -0.06em;
}

.hero-copy p,
.detail-info p,
.inner-hero p {
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  max-width: 760px;
}

.hero-tags,
.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.hero-tags span,
.card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.52);
}

.card-tags {
  margin: 0 0 12px;
}

.card-tags span {
  background: rgba(255, 182, 193, 0.16);
  color: #fb7185;
  border-color: rgba(255, 182, 193, 0.24);
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #fb7185, #38bdf8);
  padding: 14px 24px;
  box-shadow: 0 16px 36px rgba(251, 113, 133, 0.35);
}

.ghost-button,
.section-link {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  padding: 13px 21px;
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(31, 41, 55, 0.16);
}

.hero-poster,
.detail-cover {
  display: block;
  overflow: hidden;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-poster img,
.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 2.85;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img,
.detail-cover:hover img,
.movie-card:hover img {
  transform: scale(1.05);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section-block {
  padding: 74px 0;
}

.soft-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.75)),
    radial-gradient(circle at 15% 15%, rgba(255, 182, 193, 0.22), transparent 30%),
    radial-gradient(circle at 85% 25%, rgba(135, 206, 235, 0.22), transparent 32%);
}

.section-heading {
  margin-bottom: 28px;
}

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

.section-heading p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 760px;
}

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

.split-heading .section-link {
  color: #fb7185;
  background: rgba(255, 182, 193, 0.14);
  border-color: rgba(255, 182, 193, 0.28);
  backdrop-filter: none;
  flex: 0 0 auto;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.78);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.3), rgba(135, 206, 235, 0.32));
}

.card-image img {
  width: 100%;
  aspect-ratio: 2 / 2.85;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-year,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 3;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.card-year {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: linear-gradient(135deg, #fb7185, #38bdf8);
}

.card-body {
  padding: 18px;
}

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

.card-body h3 a:hover {
  color: #fb7185;
}

.card-body p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
  min-height: 3.4em;
}

.card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
}

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

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

.category-tile {
  min-height: 190px;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
    radial-gradient(circle at top left, rgba(255, 182, 193, 0.32), transparent 42%),
    radial-gradient(circle at bottom right, rgba(135, 206, 235, 0.28), transparent 40%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile span {
  display: block;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}

.category-tile strong {
  display: inline-flex;
  color: #fb7185;
  margin-bottom: 14px;
}

.category-tile p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.rank-strip {
  padding-top: 36px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.rank-row span {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #fb7185, #38bdf8);
  font-weight: 900;
}

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

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

.inner-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #fb7185, #38bdf8);
}

.inner-hero {
  padding: 96px 0 82px;
}

.inner-hero h1 {
  margin-bottom: 18px;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 24px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: 560px;
}

.filter-title {
  width: 100%;
  color: var(--muted);
  font-weight: 900;
  text-align: right;
}

.filter-pill {
  border: 1px solid rgba(251, 113, 133, 0.24);
  color: #fb7185;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 900;
}

.filter-pill.is-active,
.filter-pill:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #fb7185, #38bdf8);
}

.detail-hero {
  min-height: 620px;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 64px 0 72px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-cover img {
  aspect-ratio: 2 / 2.85;
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-meta span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-weight: 900;
}

.player-section {
  padding-top: 48px;
}

.player-card {
  padding: 12px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.player-veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.68));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-veil.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  width: clamp(74px, 12vw, 112px);
  height: clamp(74px, 12vw, 112px);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb7185, #38bdf8);
  box-shadow: 0 24px 60px rgba(251, 113, 133, 0.38);
  cursor: pointer;
}

.play-button span {
  transform: translateX(3px);
  font-size: clamp(28px, 5vw, 46px);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

.content-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.82);
  padding: 28px;
}

.article-card h2,
.info-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.article-card p {
  color: #475569;
  line-height: 2;
  margin: 0 0 30px;
  font-size: 17px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px 16px;
  margin: 0;
}

.info-card dt {
  color: #94a3b8;
  font-weight: 900;
}

.info-card dd {
  margin: 0;
  color: #334155;
  line-height: 1.7;
}

.info-card a {
  color: #fb7185;
  font-weight: 900;
}

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

.search-page-form {
  margin-top: 28px;
  max-width: 760px;
}

.search-page-form input {
  width: 100%;
  padding: 15px 18px;
}

.search-page-form button {
  padding: 15px 24px;
}

.site-footer {
  color: #475569;
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 42px 0;
}

.footer-grid p {
  max-width: 620px;
  line-height: 1.75;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: center;
  font-weight: 900;
}

.footer-links a:hover {
  color: #fb7185;
}

.footer-bottom {
  text-align: center;
  padding: 18px;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

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

@media (max-width: 1050px) {
  .header-search {
    display: none;
  }

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

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

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

  .hero-slider,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 54px 0 78px;
  }

  .hero-poster {
    max-width: 320px;
    margin: 0 auto;
  }

  .split-heading,
  .footer-grid,
  .detail-layout,
  .detail-content-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filter-panel {
    justify-content: flex-start;
    max-width: none;
  }

  .filter-title {
    text-align: left;
  }

  .movie-grid,
  .category-grid,
  .large-category-grid,
  .rank-list,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 22px, 1180px);
  }

  .nav-inner {
    min-height: 66px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .logo-text {
    font-size: 18px;
  }

  .hero-copy h1,
  .detail-info h1,
  .inner-hero h1 {
    font-size: 38px;
  }

  .movie-grid,
  .category-grid,
  .large-category-grid,
  .rank-list,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .section-block {
    padding: 52px 0;
  }

  .inner-hero {
    padding: 70px 0 58px;
  }

  .search-page-form,
  .inline-search,
  .mobile-nav form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .search-page-form button,
  .inline-search button,
  .mobile-nav button {
    width: 100%;
  }
}
