:root {
  --pink: #FFB6C1;
  --blue: #87CEEB;
  --mint: #98D8C8;
  --cream: #FFF8DC;
  --peach: #FFDAB9;
  --lavender: #E6E6FA;
  --ink: #1F2937;
  --muted: #6B7280;
  --line: #EEF2F7;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 25px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 182, 193, 0.22), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(135, 206, 235, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 248, 220, 0.78), #FFFFFF 45%, rgba(230, 230, 250, 0.38));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(238, 242, 247, 0.85);
  box-shadow: var(--shadow);
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 76px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-text,
.footer-brand {
  font-size: 22px;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark,
.footer-brand span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 10px 24px rgba(255, 182, 193, 0.38);
  font-size: 15px;
}

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

.nav-link,
.mobile-link {
  font-weight: 650;
  color: #4B5563;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #EC6E91;
}

.header-search,
.mobile-search,
.hero-search,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  background: white;
  padding: 11px 16px;
  outline: none;
  min-width: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 230px;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.22);
}

.header-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: white;
  cursor: pointer;
  font-weight: 750;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  box-shadow: 0 12px 25px rgba(135, 206, 235, 0.28);
}

.menu-toggle {
  display: none;
  border: 0;
  background: rgba(255, 182, 193, 0.12);
  color: #EC6E91;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 22px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 18px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.mobile-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #F3F4F6;
}

main {
  min-height: 60vh;
}

.hero-section,
.content-section,
.page-hero,
.detail-hero,
.site-footer {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section {
  padding: 34px 20px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.hero-slider {
  min-height: 540px;
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow-lg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0.64) 42%, rgba(17, 24, 39, 0.14) 100%),
    var(--hero-img);
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 630px;
  padding: 70px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #EC6E91;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px rgba(255, 182, 193, 0.18);
}

.hero-content h1 {
  margin: 22px 0 18px;
  color: white;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

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

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

.hero-tags {
  margin: 8px 0 26px;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 750;
  color: #374151;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.tag-row .chip,
.detail-tags .chip {
  background: rgba(255, 182, 193, 0.12);
  color: #C75C7B;
  border-color: rgba(255, 182, 193, 0.2);
}

.hero-actions,
.quick-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn,
.quick-links a,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.quick-links a:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  box-shadow: 0 14px 28px rgba(135, 206, 235, 0.34);
}

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

.btn-soft,
.quick-links a,
.section-link {
  color: #EC6E91;
  background: rgba(255, 182, 193, 0.14);
  border: 1px solid rgba(255, 182, 193, 0.28);
}

.hero-dots {
  position: absolute;
  left: 58px;
  bottom: 34px;
  display: flex;
  gap: 10px;
  z-index: 6;
}

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

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

.hero-panel,
.category-overview-card,
.soft-panel,
.ranking-aside,
.detail-article,
.player-section {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-panel h2,
.ranking-aside h2,
.site-footer h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

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

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

.compact-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.045);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

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

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

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  color: #111827;
  line-height: 1.35;
  margin-bottom: 6px;
}

.compact-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.compact-rank {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 3;
  min-width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.hero-search {
  margin-top: auto;
  padding-top: 12px;
}

.hero-search input {
  flex: 1;
}

.content-section {
  padding: 34px 20px;
}

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

.section-heading h2,
.page-hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 720px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream), var(--lavender));
}

.movie-card.featured .poster-link {
  aspect-ratio: 16 / 10;
}

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

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

.duration-pill,
.rank-badge {
  position: absolute;
  border-radius: 999px;
  padding: 6px 10px;
  color: white;
  font-size: 12px;
  font-weight: 850;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
}

.duration-pill {
  right: 10px;
  bottom: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
}

.card-body {
  padding: 16px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.meta-row a {
  color: #EC6E91;
  font-weight: 800;
}

.movie-card h2 {
  margin: 0 0 9px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: #EC6E91;
}

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

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

.category-tile {
  padding: 20px;
  min-height: 150px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 182, 193, 0.2), rgba(135, 206, 235, 0.2)),
    rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile span {
  color: #EC6E91;
  font-weight: 900;
  font-size: 20px;
}

.category-tile strong {
  color: #4B5563;
  line-height: 1.65;
  font-size: 14px;
}

.page-hero {
  margin-top: 28px;
  padding: 56px 20px;
  text-align: center;
}

.page-hero.small {
  padding-bottom: 26px;
}

.page-hero .eyebrow {
  margin: 0 auto;
}

.quick-links {
  justify-content: center;
  margin-top: 22px;
}

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  padding: 24px;
}

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.category-overview-head h2 {
  margin: 8px 0;
  font-size: 30px;
}

.category-overview-head p {
  margin: 0;
  color: var(--muted);
}

.filter-bar {
  margin-bottom: 22px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.filter-bar input {
  flex: 1;
}

.filter-bar select {
  min-width: 160px;
}

.search-wide input {
  min-height: 48px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.ranking-item a {
  display: grid;
  grid-template-columns: 54px 92px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.ranking-number {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--blue));
}

.ranking-item img {
  width: 92px;
  height: 112px;
  border-radius: 16px;
  object-fit: cover;
}

.ranking-text strong,
.ranking-text em,
.ranking-text small {
  display: block;
}

.ranking-text strong {
  font-size: 18px;
  margin-bottom: 8px;
}

.ranking-text em {
  color: #EC6E91;
  font-style: normal;
  font-size: 13px;
  margin-bottom: 6px;
}

.ranking-text small {
  color: var(--muted);
  line-height: 1.65;
}

.ranking-aside {
  padding: 22px;
  position: sticky;
  top: 98px;
}

.detail-hero {
  margin-top: 28px;
  border-radius: 0 0 34px 34px;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.93), rgba(17, 24, 39, 0.64), rgba(17, 24, 39, 0.15)),
    var(--detail-img);
  background-size: cover;
  background-position: center;
}

.detail-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  padding: 54px 20px;
  align-items: center;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.detail-copy {
  color: white;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb a:hover {
  color: white;
}

.detail-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-copy p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.9;
}

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

.player-section {
  margin-top: 34px;
  padding: 18px;
}

.player-shell {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #111827;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
  position: relative;
  z-index: 1;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.45));
}

.player-start span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  font-size: 34px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.player-shell.is-playing .player-start {
  display: none;
}

.detail-article {
  padding: 34px;
  line-height: 1.92;
}

.detail-article h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-article h2:not(:first-child) {
  margin-top: 32px;
}

.detail-article p {
  color: #4B5563;
  margin: 0;
}

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

.movie-info-list div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 182, 193, 0.1);
}

.movie-info-list dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.movie-info-list dd {
  margin: 0;
  font-weight: 800;
}

.site-footer {
  padding: 38px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.footer-grid p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 420px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: #4B5563;
  background: rgba(255, 182, 193, 0.12);
}

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

.footer-bottom {
  text-align: center;
  padding: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.is-hidden {
  display: none !important;
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-section,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 68px;
  }

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

  .hero-section {
    padding-top: 18px;
  }

  .hero-slider {
    min-height: 560px;
    border-radius: 24px;
  }

  .hero-slide {
    background-image:
      linear-gradient(180deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.48)),
      var(--hero-img);
  }

  .hero-content {
    padding: 36px 24px 76px;
    justify-content: flex-end;
  }

  .hero-dots {
    left: 24px;
    bottom: 28px;
  }

  .hero-actions,
  .quick-links {
    align-items: stretch;
  }

  .btn,
  .quick-links a,
  .section-link {
    width: 100%;
  }

  .section-heading,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .category-grid,
  .compact-list.four,
  .footer-grid,
  .movie-info-list {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .detail-poster {
    max-width: 250px;
    margin: 0 auto;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .ranking-item a {
    grid-template-columns: 44px 74px minmax(0, 1fr);
  }

  .ranking-item img {
    width: 74px;
    height: 92px;
  }
}

@media (max-width: 480px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .hero-search,
  .mobile-search {
    flex-direction: column;
    align-items: stretch;
  }
}
