:root {
  --color-pink: #ffb6c1;
  --color-blue: #87ceeb;
  --color-mint: #98d8c8;
  --color-peach: #ffdab9;
  --color-cream: #fff8dc;
  --color-lavender: #e6e6fa;
  --color-text: #273142;
  --color-muted: #6b7280;
  --color-soft: #f9fafb;
  --color-border: #edf0f5;
  --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-large: 0 12px 35px rgba(31, 41, 55, 0.14);
  --radius-small: 14px;
  --radius-medium: 22px;
  --radius-large: 34px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at 6% 8%, rgba(255, 182, 193, 0.18), transparent 26%),
    radial-gradient(circle at 92% 12%, rgba(135, 206, 235, 0.2), transparent 28%),
    linear-gradient(180deg, #fffdf7 0%, #f9fbff 44%, #ffffff 100%);
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.32), rgba(135, 206, 235, 0.28));
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(237, 240, 245, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

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

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-pink), var(--color-blue));
  box-shadow: 0 12px 28px rgba(255, 182, 193, 0.35);
}

.logo-text {
  font-size: 20px;
  background: linear-gradient(90deg, #ff8ba1, #60bfe4, #78cdb8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #4b5563;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--color-pink), var(--color-blue));
  transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

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

.search-mini {
  position: relative;
  width: 230px;
}

.search-mini input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 10px 42px 10px 16px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-mini input:focus {
  border-color: var(--color-pink);
  box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.18);
}

.search-mini button {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--color-pink), var(--color-blue));
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--color-text);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: 14px 0 18px;
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  color: #4b5563;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 54px;
  background:
    linear-gradient(135deg, rgba(255, 182, 193, 0.24), rgba(255, 248, 220, 0.38) 46%, rgba(135, 206, 235, 0.24)),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.8), transparent 22%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image: radial-gradient(circle at 24px 24px, rgba(255, 182, 193, 0.48) 0 2px, transparent 2px);
  background-size: 54px 54px;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  margin-top: 26px;
  border-radius: var(--radius-large);
  overflow: hidden;
  min-height: 480px;
  background: #111827;
  box-shadow: var(--shadow-large);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  filter: saturate(1.05) contrast(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0.62) 42%, rgba(17, 24, 39, 0.08) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.6), transparent 48%);
}

.hero-content {
  position: relative;
  width: min(680px, 100%);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px clamp(24px, 6vw, 72px);
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.85;
  font-size: 17px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #ff8fa5, #7bc8e6);
  box-shadow: 0 16px 28px rgba(255, 143, 165, 0.35);
}

.button-light {
  color: #1f2937;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.hero-controls {
  position: absolute;
  left: clamp(20px, 6vw, 72px);
  right: clamp(20px, 6vw, 72px);
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

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

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

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

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

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.section {
  padding: 62px 0;
}

.section-soft {
  background: linear-gradient(90deg, rgba(255, 182, 193, 0.08), rgba(135, 206, 235, 0.08));
}

.section-warm {
  background: linear-gradient(135deg, rgba(255, 248, 220, 0.42), rgba(255, 218, 185, 0.25));
}

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

.section-title {
  margin: 0;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-subtitle {
  margin: 9px 0 0;
  color: var(--color-muted);
  line-height: 1.75;
}

.more-link {
  color: #4baed8;
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(237, 240, 245, 0.9);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 182, 193, 0.45);
  box-shadow: var(--shadow-large);
}

.movie-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.35), rgba(135, 206, 235, 0.28));
}

.movie-poster img {
  transition: transform 0.45s ease;
}

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

.movie-year {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.movie-type {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 143, 165, 0.9), rgba(123, 200, 230, 0.9));
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.36;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #6b7280;
  font-size: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #ff7f97;
  background: rgba(255, 182, 193, 0.14);
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 160px;
  padding: 24px;
  border: 1px solid rgba(237, 240, 245, 0.9);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.3), rgba(135, 206, 235, 0.28));
  font-size: 24px;
}

.category-card h2,
.category-card h3 {
  margin: 0;
  font-size: 20px;
}

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

.page-hero {
  padding: 64px 0 44px;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.18), rgba(230, 230, 250, 0.28), rgba(135, 206, 235, 0.18));
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.04em;
}

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

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

.breadcrumb a {
  color: #4baed8;
  font-weight: 700;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 66px 130px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(237, 240, 245, 0.92);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.rank-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff8fa5, #7bc8e6);
  font-weight: 900;
}

.rank-thumb {
  height: 82px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.35), rgba(135, 206, 235, 0.28));
}

.rank-copy h2,
.rank-copy h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.rank-copy p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-meta {
  color: var(--color-muted);
  font-size: 13px;
  white-space: nowrap;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px;
  border: 1px solid rgba(237, 240, 245, 0.95);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 0 14px;
  outline: none;
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--color-pink);
  box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.15);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-card,
.side-card {
  overflow: hidden;
  border: 1px solid rgba(237, 240, 245, 0.92);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #05070c;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  background: #05070c;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(5, 7, 12, 0.22);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  z-index: -2;
  filter: brightness(0.62) saturate(1.05);
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 42%), rgba(0, 0, 0, 0.32);
}

.play-button {
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, #ff8fa5, #7bc8e6);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.34);
  font-size: 30px;
  line-height: 1;
}

.detail-card {
  padding: 26px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #4b5563;
  background: rgba(135, 206, 235, 0.14);
  font-size: 13px;
  font-weight: 700;
}

.detail-section {
  margin-top: 26px;
}

.detail-section h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.detail-section p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.side-card {
  padding: 20px;
}

.side-card h2,
.side-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
}

.related-list {
  display: grid;
  gap: 13px;
}

.related-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-thumb {
  height: 64px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.35), rgba(135, 206, 235, 0.28));
}

.related-item h3,
.related-item h4 {
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item span {
  color: var(--color-muted);
  font-size: 12px;
}

.cta-band {
  margin: 18px 0 0;
  padding: 36px;
  text-align: center;
  border-radius: var(--radius-large);
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.12), rgba(135, 206, 235, 0.13));
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(25px, 4vw, 38px);
}

.cta-band p {
  margin: 0 auto 22px;
  max-width: 720px;
  color: var(--color-muted);
  line-height: 1.8;
}

.site-footer {
  margin-top: 40px;
  padding: 42px 0;
  border-top: 1px solid rgba(237, 240, 245, 0.9);
  background: rgba(255, 255, 255, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.footer-grid p,
.footer-grid a {
  color: var(--color-muted);
  line-height: 1.85;
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.copyright {
  margin-top: 30px;
  color: #9ca3af;
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 30px;
  text-align: center;
  color: var(--color-muted);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

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

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero {
    padding: 34px 0 40px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 520px;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.42));
  }

  .hero-content {
    justify-content: end;
    padding-bottom: 96px;
  }

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

  .rank-item {
    grid-template-columns: 46px 94px minmax(0, 1fr);
  }

  .rank-meta {
    grid-column: 3;
    white-space: normal;
  }

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

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

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

  .hero-carousel,
  .hero-content {
    min-height: 540px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-controls {
    left: 18px;
    right: 18px;
    bottom: 22px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
  }

  .section-head {
    display: block;
  }

  .more-link {
    display: inline-block;
    margin-top: 10px;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 88px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-thumb {
    height: 70px;
  }

  .detail-card,
  .side-card {
    padding: 18px;
  }
}
