:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-600: #db2777;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select,
textarea {
  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(226, 232, 240, 0.9);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
}

.brand-text {
  font-size: 1.25rem;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  color: var(--slate-700);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose-600);
}

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

.header-search input,
.mobile-search input,
.search-panel input,
.search-panel select {
  width: 220px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  background: #fff;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search button,
.mobile-search button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  cursor: pointer;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(244, 63, 94, 0.22);
}

.ghost-button {
  color: var(--rose-600);
  background: #fff;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--rose-50);
  color: var(--rose-600);
  cursor: pointer;
}

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

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

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-nav .nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #881337, #9d174d 45%, #be123c);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.58) 50%, rgba(15, 23, 42, 0.08));
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero-kicker,
.category-chip,
.rating-chip,
.card-rank,
.rank-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 760;
}

.hero-kicker {
  background: var(--rose-500);
  padding: 6px 14px;
  margin-bottom: 18px;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-content p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.13rem;
  line-height: 1.8;
}

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

.hero-arrow,
.hero-dot {
  position: relative;
  z-index: 4;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

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

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

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.stats-strip {
  position: relative;
  z-index: 5;
  margin-top: -72px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card,
.category-card,
.content-card,
.article-card,
.search-panel,
.pagination,
.player-info,
.side-card {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.stat-card {
  padding: 24px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.stat-card:nth-child(2) {
  background: linear-gradient(135deg, #10b981, #059669);
}

.stat-card:nth-child(3) {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-card:nth-child(4) {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.section {
  padding: 70px 0 0;
}

.section.alt {
  padding: 70px 0;
  background: linear-gradient(135deg, #fff, #f1f5f9);
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--slate-500);
}

.section-more {
  color: var(--rose-600);
  font-weight: 760;
}

.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));
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover,
.row-cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fecdd3, #f9a8d4);
}

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

.movie-cover img,
.row-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.cover-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.62));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-icon,
.play-hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: #fff;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.92);
  box-shadow: 0 12px 32px rgba(244, 63, 94, 0.36);
}

.category-chip {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  color: #fff;
  background: rgba(244, 63, 94, 0.92);
  font-size: 0.78rem;
}

.rating-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
  font-size: 0.8rem;
}

.card-rank {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  color: #fff;
  background: rgba(2, 6, 23, 0.78);
  font-size: 0.78rem;
}

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

.movie-card h3,
.movie-row-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-card p,
.movie-row-card p {
  margin: 10px 0 14px;
  color: var(--slate-500);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 0.88rem;
}

.meta-line span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--slate-100);
}

.horizontal-scroll {
  overflow-x: auto;
  padding-bottom: 12px;
}

.horizontal-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.horizontal-track .movie-card {
  width: 320px;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
}

.movie-row-card {
  display: flex;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-row-card + .movie-row-card {
  margin-top: 14px;
}

.movie-row-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.row-cover {
  width: 180px;
  min-height: 110px;
  border-radius: 14px;
  flex: 0 0 auto;
}

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.row-content {
  min-width: 0;
  flex: 1;
}

.rank-badge {
  color: var(--rose-600);
  background: var(--rose-50);
  padding: 3px 10px;
  margin-bottom: 8px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  min-height: 210px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -60px;
  top: -60px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.12);
}

.category-card strong {
  display: block;
  color: var(--rose-600);
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.category-card p {
  color: var(--slate-500);
  line-height: 1.7;
}

.page-hero {
  padding: 76px 0;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), transparent 35%), linear-gradient(135deg, #9f1239, #db2777);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.85;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.74);
}

.search-panel {
  padding: 22px;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.search-panel input,
.search-panel select {
  width: 100%;
}

.content-card,
.article-card,
.player-info,
.side-card {
  padding: 26px;
}

.content-card h2,
.article-card h2,
.player-info h2,
.side-card h2 {
  margin-top: 0;
}

.detail-shell {
  background: #050505;
}

.player-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.player-poster.hidden {
  display: none;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.36), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  font-weight: 800;
  font-size: 1.05rem;
}

.player-overlay.hidden {
  display: none;
}

.player-overlay .player-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: #fff;
  background: var(--rose-500);
  font-size: 2rem;
  box-shadow: 0 16px 36px rgba(244, 63, 94, 0.36);
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  border-radius: 14px;
  padding: 12px 14px;
  display: none;
}

.player-message.show {
  display: block;
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding-top: 34px;
}

.detail-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.045em;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.tag-cloud span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--rose-600);
  background: var(--rose-50);
  font-weight: 650;
}

.text-block {
  color: var(--slate-700);
  line-height: 1.92;
  font-size: 1.02rem;
}

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

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--slate-100);
}

.info-list span:first-child {
  color: var(--slate-500);
}

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

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 18px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--slate-100);
  font-weight: 700;
}

.pagination a:hover,
.pagination .current {
  color: #fff;
  background: var(--rose-500);
}

.notice-box {
  padding: 20px;
  border-radius: 18px;
  background: var(--rose-50);
  color: #9f1239;
  line-height: 1.8;
}

.site-footer {
  margin-top: 80px;
  padding: 52px 0 28px;
  color: #e2e8f0;
  background: linear-gradient(135deg, #0f172a, #1e293b 55%, #111827);
}

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

.site-footer p {
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer a {
  display: block;
  color: #94a3b8;
  margin: 8px 0;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  color: #94a3b8;
  font-size: 0.92rem;
}

.empty-state {
  padding: 44px;
  text-align: center;
  border-radius: var(--radius);
  background: #fff;
  color: var(--slate-500);
}

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .stats-strip,
  .rank-layout,
  .detail-main,
  .footer-grid,
  .search-panel {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .brand-text {
    font-size: 1.05rem;
  }

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

  .hero-arrow {
    display: none;
  }

  .stats-strip,
  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .rank-layout,
  .detail-main,
  .footer-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 48px;
  }

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

  .row-cover {
    width: 125px;
  }

  .movie-row-card {
    gap: 12px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
