:root {
  --rose: #fb7185;
  --rose-dark: #e11d48;
  --teal: #2dd4bf;
  --teal-dark: #0f766e;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 42%, #f1f5f9 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

.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.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rose), var(--teal));
  box-shadow: 0 10px 24px rgba(251, 113, 133, 0.28);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 9px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #ffffff;
}

.logo-text {
  background: linear-gradient(90deg, var(--rose), var(--teal-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #374151;
  font-weight: 700;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--rose-dark);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  border: 0;
  background: #fff1f2;
  color: var(--rose-dark);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
}

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

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  margin-top: 6px;
  border-radius: 12px;
  background: #ffffff;
  color: #374151;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  background:
    radial-gradient(circle at 15% 25%, rgba(251, 113, 133, 0.25), transparent 26%),
    radial-gradient(circle at 85% 15%, rgba(45, 212, 191, 0.22), transparent 28%),
    linear-gradient(135deg, #fff1f2 0%, #ffffff 45%, #ecfeff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.92), rgba(255,255,255,0.66), rgba(255,255,255,0.38));
  z-index: 1;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease, transform 1.4s ease;
  filter: saturate(1.08);
}

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

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: 48px;
  min-height: 610px;
  padding: 46px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(251, 113, 133, 0.20);
  color: var(--rose-dark);
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  color: #111827;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--rose-dark), var(--teal-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-summary {
  max-width: 680px;
  margin: 0 0 28px;
  color: #475569;
  font-size: 18px;
  line-height: 1.85;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  background: linear-gradient(90deg, var(--rose), var(--teal));
  color: white;
  box-shadow: 0 15px 30px rgba(251, 113, 133, 0.25);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: #374151;
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.hero-search {
  display: flex;
  width: min(100%, 620px);
  padding: 8px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(226, 232, 240, 0.98);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.hero-search input {
  flex: 1;
  min-width: 120px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 18px;
  color: #111827;
  font-size: 16px;
}

.hero-panel {
  position: relative;
}

.hero-card {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 18px;
  align-items: stretch;
  min-height: 380px;
  padding: 16px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border-radius: 26px;
  background: linear-gradient(135deg, #ffe4e6, #ccfbf1);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.56));
}

.hero-rank-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--rose-dark);
  font-weight: 900;
}

.hero-copy {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 18px;
  color: #4b5563;
  line-height: 1.75;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.pill-hot {
  background: linear-gradient(90deg, var(--rose), var(--teal));
  color: white;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 99px;
  background: #cbd5e1;
  cursor: pointer;
}

.hero-dot.active {
  width: 28px;
  background: linear-gradient(90deg, var(--rose), var(--teal));
}

.section {
  padding: 52px 0;
}

.section-tight {
  padding: 34px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.section-desc {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.12);
  border-color: rgba(251, 113, 133, 0.35);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #ccfbf1);
}

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0,0,0,0.58));
  opacity: 0.86;
}

.card-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose), var(--teal));
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.card-time {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose-dark);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 15px;
}

.card-title {
  margin: 0 0 8px;
  min-height: 48px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 900;
}

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

.card-line {
  margin: 0 0 12px;
  color: #64748b;
  line-height: 1.6;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile {
  min-height: 142px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(236,254,255,0.86));
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.category-tile p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.filters {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
  margin-bottom: 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.input,
.select {
  width: 100%;
  height: 44px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  outline: 0;
  padding: 0 13px;
  background: #ffffff;
  color: #111827;
}

.input:focus,
.select:focus {
  border-color: rgba(251, 113, 133, 0.7);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

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

.rank-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #ccfbf1);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-title {
  margin: 0 0 6px;
  font-weight: 900;
}

.rank-info {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.breadcrumb {
  padding: 22px 0 0;
  color: #64748b;
  font-size: 14px;
}

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

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

.detail-card,
.side-card {
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.detail-card {
  overflow: hidden;
}

.player-box {
  background: #020617;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-shell video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.72)),
    var(--poster, linear-gradient(135deg, #ffe4e6, #ccfbf1));
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.big-play {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose-dark);
  font-size: 30px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
  cursor: pointer;
}

.player-note {
  padding: 10px 16px;
  color: #cbd5e1;
  font-size: 13px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.detail-body {
  padding: 24px;
}

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-section-title {
  margin: 28px 0 12px;
  font-size: 22px;
}

.detail-text {
  margin: 0;
  color: #475569;
  line-height: 1.92;
  font-size: 16px;
}

.side-card {
  padding: 18px;
}

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

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

.side-link {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  align-items: center;
}

.side-link img {
  width: 74px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffe4e6, #ccfbf1);
}

.side-link strong {
  display: block;
  line-height: 1.35;
}

.side-link span {
  color: #64748b;
  font-size: 12px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 800;
}

.pagination .active {
  background: linear-gradient(90deg, var(--rose), var(--teal));
  color: #ffffff;
  border-color: transparent;
}

.footer {
  margin-top: 58px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  padding: 42px 0;
}

.footer p {
  color: #64748b;
  line-height: 1.8;
}

.footer a:hover {
  color: var(--rose-dark);
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  display: none;
  place-items: center;
  background: linear-gradient(135deg, var(--rose), var(--teal));
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  cursor: pointer;
}

.search-results {
  display: none;
  position: absolute;
  z-index: 80;
  width: min(620px, calc(100vw - 32px));
  max-height: 430px;
  overflow: auto;
  margin-top: 8px;
  padding: 10px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow);
}

.search-results.active {
  display: grid;
  gap: 6px;
}

.search-result-item {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
}

.search-result-item:hover {
  background: #fff1f2;
}

.empty-state {
  padding: 26px;
  text-align: center;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

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

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

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

  .mobile-menu-button {
    display: inline-flex;
  }

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

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 34px 0 44px;
  }

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

  .hero-poster {
    min-height: 260px;
  }

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

  .rank-list {
    grid-template-columns: 1fr;
  }

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

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

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

  .section {
    padding: 36px 0;
  }

  .hero-search {
    border-radius: 22px;
    flex-direction: column;
    gap: 8px;
  }

  .hero-search input {
    height: 42px;
  }

  .button {
    width: 100%;
  }

  .rank-item {
    grid-template-columns: 42px 76px 1fr;
    gap: 10px;
  }
}
