:root {
  --rose: #f43f5e;
  --rose-deep: #e11d48;
  --pink: #ec4899;
  --amber: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff1f2;
  --paper: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 10px 25px rgba(244, 63, 94, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 48%, #fffbeb 100%);
}

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

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

.image-hidden {
  opacity: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.site-logo span:last-child {
  font-size: 24px;
  background: linear-gradient(90deg, var(--pink), var(--rose-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #fb7185, var(--rose-deep));
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.28);
  font-size: 15px;
  transition: transform 0.25s ease;
}

.site-logo:hover .logo-mark {
  transform: scale(1.08) rotate(4deg);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-panel nav a {
  position: relative;
  font-weight: 650;
  color: #374151;
  transition: color 0.2s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  border-radius: 99px;
  background: var(--rose);
  transition: right 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel nav a:hover,
.mobile-panel nav a.active {
  color: var(--rose-deep);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  right: 0;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-panel input,
.filter-input,
.filter-select {
  height: 42px;
  border: 2px solid #e5e7eb;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 14px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search input:focus,
.mobile-panel input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
}

button,
.btn,
.header-search button,
.mobile-panel button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-panel button,
.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: var(--shadow-soft);
}

.header-search button {
  height: 42px;
  padding: 0 18px;
}

button:hover,
.btn:hover {
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: #374151;
  background: #f3f4f6;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
}

.mobile-panel nav a {
  padding: 12px 14px;
  border-radius: 14px;
}

.mobile-panel nav a:hover,
.mobile-panel nav a.active {
  background: #fff1f2;
}

main {
  min-height: 60vh;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 630px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.5;
  z-index: -1;
}

.hero::before {
  width: 360px;
  height: 360px;
  top: 50px;
  left: -120px;
  background: radial-gradient(circle, #fda4af, transparent 62%);
}

.hero::after {
  width: 420px;
  height: 420px;
  right: -130px;
  bottom: 40px;
  background: radial-gradient(circle, #fbbf24, transparent 62%);
}

.hero-slider {
  width: min(1180px, calc(100% - 32px));
  position: relative;
  margin: 46px auto 34px;
}

.hero-slide {
  display: none;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 38px;
  align-items: center;
  min-height: 520px;
  padding: 42px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-slide.active {
  display: grid;
  animation: heroIn 0.65s ease both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--rose-deep);
  background: #ffe4e6;
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

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

.hero-copy p {
  margin: 0;
  max-width: 670px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  font-size: 15px;
}

.btn-primary {
  color: #ffffff;
}

.btn-light {
  color: #374151;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 25px rgba(17, 24, 39, 0.08);
}

.hero-tags,
.tag-row,
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags a,
.tag-row span,
.category-chips a,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  color: #9f1239;
  background: #ffe4e6;
}

.hero-media {
  position: relative;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 30px;
  background: linear-gradient(135deg, #fb7185, #f59e0b);
  box-shadow: 0 25px 60px rgba(225, 29, 72, 0.24);
}

.hero-poster img,
.poster-frame img,
.detail-cover img,
.player-cover img,
.mini-link img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster img {
  transition: transform 0.7s ease;
}

.hero-slide:hover .hero-poster img {
  transform: scale(1.05);
}

.hero-overlay,
.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0) 20%, rgba(17, 24, 39, 0.75) 100%);
}

.hero-info-card {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px;
  border-radius: 22px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(16px);
}

.hero-info-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.hero-info-card span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.hero-controls {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-controls button,
.slider-dots button {
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(12px);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  min-height: auto;
  padding: 0;
  background: #fecdd3;
}

.slider-dots button.active {
  width: 28px;
  background: var(--rose);
}

.section {
  padding: 54px 0;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.82);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(17, 24, 39, 0.13);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fb7185, #fbbf24);
}

.poster-frame img {
  transition: transform 0.55s ease;
}

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

.poster-type,
.rank-num,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-type {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(225, 29, 72, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.rank-num {
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #e11d48);
  font-weight: 900;
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.52);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  backdrop-filter: blur(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
  padding: 18px;
}

.movie-card-title {
  display: block;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  transition: color 0.2s ease;
}

.movie-card-title:hover {
  color: var(--rose-deep);
}

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
  color: #6b7280;
  font-size: 13px;
}

.movie-card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #d1d5db;
}

.movie-card-body p {
  min-height: 52px;
  margin: 0 0 14px;
  color: #4b5563;
  line-height: 1.7;
  font-size: 14px;
}

.compact-card .movie-card-body p {
  min-height: auto;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 26px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background: linear-gradient(135deg, #111827, #e11d48);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-card img {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  transition: transform 0.55s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.86));
}

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

.category-card h2,
.category-card p,
.category-card span {
  position: relative;
  z-index: 1;
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

.category-card span {
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.feature-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.ranking-panel,
.filter-panel,
.content-panel {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.78);
}

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

.mini-link {
  display: grid;
  grid-template-columns: auto 78px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-link:hover {
  transform: translateX(3px);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
}

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

.mini-link img {
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fb7185, #fbbf24);
}

.mini-link strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.3;
}

.mini-link em {
  color: #6b7280;
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  padding: 72px 0 48px;
  background: radial-gradient(circle at top left, rgba(251, 113, 133, 0.24), transparent 36%), radial-gradient(circle at top right, rgba(245, 158, 11, 0.2), transparent 30%);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #4b5563;
  line-height: 1.8;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  margin-bottom: 26px;
}

.filter-input {
  width: 100%;
  border-radius: 18px;
}

.filter-select {
  min-width: 150px;
  border-radius: 18px;
}

.no-result {
  display: none;
  padding: 28px;
  border-radius: 24px;
  color: #6b7280;
  background: #ffffff;
  text-align: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: start;
}

.detail-cover {
  position: sticky;
  top: 102px;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fb7185, #fbbf24);
  box-shadow: var(--shadow);
}

.detail-main h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.04em;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.meta-line span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-weight: 750;
  font-size: 13px;
}

.detail-lead {
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

.player-shell {
  margin-top: 34px;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: var(--shadow);
}

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

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(135deg, #111827, #e11d48);
  z-index: 3;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  opacity: 0.48;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.15), rgba(17, 24, 39, 0.82));
}

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

.player-play {
  position: relative;
  z-index: 4;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 45px rgba(225, 29, 72, 0.35);
  font-size: 28px;
}

.player-title {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 4;
  color: #ffffff;
  font-weight: 850;
  font-size: 22px;
}

.article-block {
  margin-top: 28px;
}

.article-block h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.article-block p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
  font-size: 17px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumbs a {
  color: #be123c;
  font-weight: 750;
}

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

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 38px;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  color: #9ca3af;
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-links a {
  color: #d1d5db;
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-slide,
  .feature-panel,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    position: relative;
    top: auto;
    max-width: 460px;
  }

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

@media (max-width: 760px) {
  .header-inner {
    height: 66px;
  }

  .site-logo span:last-child {
    font-size: 20px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: auto;
  }

  .hero-slider {
    margin: 22px auto;
  }

  .hero-slide {
    min-height: auto;
    padding: 22px;
    border-radius: 26px;
  }

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

  .hero-poster {
    aspect-ratio: 16 / 11;
  }

  .section {
    padding: 36px 0;
  }

  .section-head {
    display: grid;
  }

  .movie-grid,
  .category-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .mini-link {
    grid-template-columns: auto 64px 1fr;
  }

  .page-hero {
    padding: 44px 0 28px;
  }
}
