:root {
  --bg: #fffaf7;
  --text: #171717;
  --muted: #6b7280;
  --line: rgba(15, 23, 42, 0.10);
  --rose: #e11d48;
  --rose-dark: #be123c;
  --orange: #f97316;
  --amber: #f59e0b;
  --card: rgba(255, 255, 255, 0.86);
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
  --shadow-hover: 0 24px 65px rgba(225, 29, 72, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #fff 38%, #fffaf7 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 12px 32px rgba(225, 29, 72, 0.28);
  display: grid;
  place-items: center;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  font-size: 14px;
  transition: 0.22s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.22);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(100deg, #ffe4e6 0%, #fff7ed 44%, #fef3c7 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(251, 113, 133, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 113, 133, 0.18) 1px, transparent 1px);
  background-size: 58px 58px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22), transparent 68%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 490px;
  gap: 42px;
  align-items: center;
  padding: 58px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: var(--rose-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(225, 29, 72, 0.14);
  font-weight: 800;
  box-shadow: 0 12px 34px rgba(244, 63, 94, 0.12);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.07em;
}

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

.hero-lead {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: clamp(16px, 2vw, 21px);
  color: #4b5563;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  min-height: 48px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  transition: 0.24s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 18px 38px rgba(225, 29, 72, 0.26);
}

.btn-light {
  color: #111827;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(17, 24, 39, 0.12);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.hero-panel {
  position: relative;
  border-radius: 34px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  min-height: 560px;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  background: linear-gradient(135deg, #ffe4e6, #fed7aa);
}

.slide-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.12) 36%, rgba(0, 0, 0, 0.82) 100%);
}

.slide-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: #fff;
}

.slide-content h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.18;
}

.slide-content p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-dots {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  gap: 7px;
}

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

.hero-dot.active {
  width: 26px;
  background: #fff;
}

main {
  min-height: 60vh;
}

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

.section-wide {
  width: 100%;
  padding: 64px 0;
  background: linear-gradient(100deg, #fff7ed, #fffbeb);
}

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

.section-title {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.grid.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

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

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #fed7aa);
}

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

.card:hover .poster img {
  transform: scale(1.08);
}

.poster-overlay {
  position: absolute;
  inset: auto 0 0 0;
  min-height: 48%;
  padding: 56px 16px 16px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.83));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-body {
  padding: 16px;
}

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

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

.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #6b7280;
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--rose-dark);
  background: #ffe4e6;
  font-size: 12px;
  font-weight: 800;
}

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

.tag {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.10);
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile {
  position: relative;
  padding: 22px;
  min-height: 150px;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(225, 29, 72, 0.10);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
  transition: 0.25s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 108px;
  height: 108px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.22), rgba(249, 115, 22, 0.18));
}

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

.category-tile h3 {
  position: relative;
  margin: 0 0 8px;
  font-size: 20px;
  z-index: 1;
}

.category-tile p {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  z-index: 1;
}

.page-hero {
  padding: 64px 0 40px;
  background: linear-gradient(100deg, #ffe4e6, #fff7ed 55%, #fef3c7);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

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

.page-hero h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 18px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  padding: 16px;
  margin-bottom: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.search-panel input,
.search-panel select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  outline: 0;
  font-size: 15px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 62px 82px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

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

.rank-poster {
  width: 82px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #ffe4e6, #fed7aa);
}

.movie-detail {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.breadcrumb {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.detail-poster {
  position: sticky;
  top: 94px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #ffe4e6, #fed7aa);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

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

.info-box {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.info-box strong {
  display: block;
  color: #111827;
}

.info-box span {
  color: var(--muted);
  font-size: 14px;
}

.player-card {
  margin-top: 26px;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.video-frame video {
  width: 100%;
  height: 100%;
  background: #0f172a;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.88)),
    linear-gradient(135deg, rgba(225, 29, 72, 0.28), rgba(249, 115, 22, 0.22));
}

.play-cover.hidden {
  display: none;
}

.play-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 18px 48px rgba(225, 29, 72, 0.4);
  font-size: 28px;
  cursor: pointer;
  transition: 0.22s ease;
}

.play-button:hover {
  transform: scale(1.06);
}

.player-info {
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.article-section {
  margin-top: 30px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.article-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.article-section p {
  margin: 0;
  color: #374151;
}

.footer {
  padding: 36px 0;
  color: #6b7280;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.empty-note {
  display: none;
  padding: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-inner,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .detail-poster {
    position: relative;
    top: auto;
  }

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

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

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

@media (max-width: 640px) {
  .navbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding: 42px 0;
  }

  .hero-slider,
  .hero-slide img {
    min-height: 430px;
  }

  .grid,
  .grid.featured-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-item {
    grid-template-columns: 46px 68px 1fr;
  }

  .rank-item .btn {
    grid-column: 2 / -1;
  }

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