:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --orange: #fb923c;
  --orange-dark: #f97316;
  --pink-soft: #fff1f2;
  --orange-soft: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #ffe4e6;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(244, 63, 94, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 45%, #fdf2f8 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.96), rgba(255, 247, 237, 0.96));
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(244, 63, 94, 0.12);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--rose), var(--orange-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb7185, #fb923c);
  box-shadow: 0 12px 25px rgba(244, 63, 94, 0.26);
}

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

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--rose);
}

.header-search {
  position: relative;
  width: 270px;
  flex: 0 0 auto;
}

.header-search input,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  padding: 11px 44px 11px 18px;
  font-size: 14px;
  outline: none;
  background: #ffffff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.header-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange-dark));
  cursor: pointer;
}

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

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 28%, rgba(251, 146, 60, 0.24), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.36) 58%, rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 64px 0 72px;
  color: #ffffff;
}

.hero-text {
  max-width: 760px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 7px 14px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--rose), var(--orange-dark));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.28);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--orange-dark));
  box-shadow: 0 16px 30px rgba(244, 63, 94, 0.32);
}

.btn-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

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

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

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

.section {
  padding: 44px 0;
}

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

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

.section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

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

.icon-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.icon-title::before {
  content: "";
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rose), var(--orange-dark));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.22);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #374151;
  background: #ffffff;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(244, 63, 94, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.chip:hover,
.filter-chip:hover,
.filter-chip.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--orange-dark));
  transform: translateY(-2px);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(244, 63, 94, 0.18);
}

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

.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;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 60%);
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.cover-tag,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--rose), var(--orange-dark));
}

.rank-badge {
  left: 10px;
  right: auto;
}

.card-body {
  padding: 14px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #9ca3af;
  font-size: 12px;
}

.panel {
  border-radius: 24px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

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

.category-card {
  border-radius: 22px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(244, 63, 94, 0.11);
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card h3 {
  margin: 0 0 8px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 110px 1fr;
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(244, 63, 94, 0.08);
}

.rank-num {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 900;
  font-size: 20px;
  background: linear-gradient(135deg, var(--rose), var(--orange-dark));
}

.rank-thumb {
  width: 110px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #fecdd3, #fed7aa);
}

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

.pagination a,
.pagination span {
  min-width: 42px;
  border-radius: 12px;
  padding: 10px 13px;
  text-align: center;
  font-weight: 800;
  background: #ffffff;
  color: #4b5563;
}

.pagination a:hover,
.pagination .current {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--orange-dark));
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 26px;
  align-items: stretch;
}

.player-shell {
  overflow: hidden;
  border-radius: 26px;
  background: #111827;
  box-shadow: 0 24px 48px rgba(17, 24, 39, 0.24);
}

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

.video-wrap video,
.video-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.2));
  cursor: pointer;
}

.play-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange-dark));
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(244, 63, 94, 0.38);
  cursor: pointer;
}

.player-status {
  padding: 12px 16px;
  color: #d1d5db;
  font-size: 14px;
  background: #111827;
}

.detail-info {
  border-radius: 26px;
  padding: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0;
}

.meta-pill,
.tag-pill {
  border-radius: 999px;
  padding: 7px 12px;
  color: #4b5563;
  background: #fff1f2;
  font-size: 13px;
  font-weight: 800;
}

.tag-pill {
  color: var(--rose-dark);
  background: #ffe4e6;
}

.prose-card {
  border-radius: 22px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.1);
  line-height: 1.85;
}

.prose-card h2 {
  margin-top: 0;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px 160px;
  gap: 12px;
  margin-bottom: 24px;
}

.search-panel select {
  padding-right: 18px;
}

.empty-state {
  display: none;
  border-radius: 22px;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
}

.site-footer {
  margin-top: 56px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
  padding: 42px 0;
}

.footer-inner h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-inner p,
.footer-inner li {
  color: #9ca3af;
  line-height: 1.8;
  font-size: 14px;
}

.footer-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  color: #9ca3af;
  font-size: 14px;
  text-align: center;
}

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

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

@media (max-width: 840px) {
  .header-inner {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .main-nav,
  .header-search {
    display: none;
    width: 100%;
  }

  .main-nav.is-open,
  .header-search.is-open {
    display: flex;
  }

  .main-nav.is-open {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero {
    height: 520px;
  }

  .hero-content {
    padding: 44px 0 62px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .category-grid,
  .rank-list,
  .detail-hero,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

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

  .rank-item {
    grid-template-columns: 48px 90px 1fr;
  }

  .rank-num {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 17px;
  }

  .rank-thumb {
    width: 90px;
  }
}

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

  .logo {
    font-size: 20px;
  }

  .hero {
    height: 500px;
  }

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

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

  .card-cover {
    aspect-ratio: 16 / 9;
  }

  .detail-info,
  .prose-card,
  .panel {
    padding: 20px;
  }
}
