:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --pink: #db2777;
  --orange: #f97316;
  --amber-soft: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f1f5f9;
  --panel: #ffffff;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 14px 36px rgba(225, 29, 72, 0.16);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 42%, #ffffff 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 241, 242, 0.96), rgba(253, 242, 248, 0.96));
  border-bottom: 1px solid rgba(251, 113, 133, 0.18);
  box-shadow: 0 8px 24px rgba(148, 26, 60, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  display: inline-flex;
  width: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 10px 26px rgba(225, 29, 72, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 8px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #4b5563;
  font-weight: 700;
}

.mobile-link:hover {
  background: #fff1f2;
  color: var(--rose);
}

main {
  overflow: hidden;
}

.hero-section {
  padding: 34px 16px 18px;
}

.hero-shell {
  position: relative;
  width: min(1180px, 100%);
  height: min(640px, calc(100vh - 130px));
  min-height: 520px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 56px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide::before,
.detail-hero::before,
.category-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 26%, rgba(255, 255, 255, 0.26), transparent 28%), linear-gradient(90deg, rgba(17, 24, 39, 0.72), rgba(136, 19, 55, 0.58), rgba(249, 115, 22, 0.32));
}

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

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero-copy h1,
.page-hero h1,
.detail-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.hero-copy p,
.page-hero p,
.detail-hero p {
  max-width: 760px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.movie-meta,
.hero-actions,
.hero-inline-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.tag-row span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.hero-actions {
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: #ffffff;
  color: var(--rose);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.ghost-button {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 56px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

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

.compact-section {
  padding: 68px 0;
}

.plain-section {
  padding-top: 46px;
}

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

.section-head h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-link {
  min-height: 44px;
  color: var(--rose);
  background: #fff1f2;
}

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

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

.small-grid,
.catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(244, 63, 94, 0.22);
  box-shadow: 0 22px 44px rgba(225, 29, 72, 0.16);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(17, 24, 39, 0.86));
}

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.22) 48%, transparent 54%);
  transform: translateX(-100%);
  transition: transform 0.65s ease;
}

.movie-card:hover .poster-shine {
  transform: translateX(100%);
}

.poster-play,
.poster-year {
  position: absolute;
  z-index: 2;
}

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

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

.poster-year {
  right: 12px;
  top: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

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

.movie-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--rose);
}

.movie-card p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.movie-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f8fafc;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  color: var(--rose);
  background: #fff1f2;
}

.category-section {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(255, 241, 242, 0.82), rgba(255, 247, 237, 0.82));
}

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

.category-tile,
.category-card {
  position: relative;
  min-height: 154px;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.1);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(225, 29, 72, 0.15);
}

.category-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.category-tile strong {
  color: #111827;
  font-size: 19px;
}

.category-tile small {
  color: var(--muted);
  line-height: 1.6;
}

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

.ranking-panel {
  position: sticky;
  top: 100px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(150deg, #111827, #831843 58%, #fb923c);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.ranking-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 900;
}

.ranking-title a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.rank-row:hover {
  background: rgba(255, 255, 255, 0.2);
}

.rank-number {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ffffff;
  color: var(--rose);
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.rank-meta {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.page-hero,
.detail-hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  min-height: 350px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 34px;
  padding: 54px;
  color: #ffffff;
  background: linear-gradient(135deg, #9f1239, #f97316);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.slim-hero {
  min-height: 300px;
}

.page-hero > div,
.detail-hero-inner {
  position: relative;
  z-index: 2;
}

.page-hero p {
  margin-bottom: 0;
}

.category-card {
  display: grid;
  align-content: end;
  min-height: 220px;
  padding: 24px;
  color: #ffffff;
  background-position: center;
  background-size: cover;
}

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

.category-card span,
.category-card strong,
.category-card em {
  position: relative;
  z-index: 1;
}

.category-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 900;
}

.category-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.category-card em {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  line-height: 1.6;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 160px;
  gap: 14px;
  padding: 16px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #fee2e2;
  border-radius: 16px;
  padding: 0 16px;
  color: #374151;
  background: #fffafa;
  outline: none;
  font: inherit;
}

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

.detail-hero {
  min-height: 430px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
}

.detail-poster {
  min-height: 420px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.detail-poster span {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

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

.detail-info h2,
.article-section h2 {
  margin: 0 0 22px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.info-list {
  margin: 0;
  display: grid;
  gap: 14px;
}

.info-list div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  color: var(--muted);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

.detail-tags span {
  color: var(--rose-dark);
}

.player-section {
  padding-top: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #0f172a;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.movie-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f172a;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(225, 29, 72, 0.18), rgba(15, 23, 42, 0.78));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-started .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 18px 42px rgba(225, 29, 72, 0.42);
  font-size: 30px;
}

.player-overlay strong {
  font-size: 22px;
}

.player-state {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 4;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.article-section {
  max-width: 920px;
  padding: 42px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.article-section p {
  margin: 0 0 18px;
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.hero-inline-links {
  margin-top: 20px;
}

.hero-inline-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 800;
}

.ranking-page-list {
  display: grid;
  gap: 16px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(225, 29, 72, 0.16);
}

.ranking-poster {
  position: relative;
  min-height: 160px;
  border-radius: 20px;
  background-position: center;
  background-size: cover;
}

.ranking-poster span {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background: #ffffff;
  color: var(--rose);
  font-weight: 900;
}

.ranking-card h2 {
  margin: 6px 0 10px;
  font-size: 24px;
}

.ranking-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.75;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  padding: 46px 0;
}

.footer-inner p {
  max-width: 620px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 800;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 14px;
}

[hidden-by-filter="true"] {
  display: none !important;
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 18px;
  }

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

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

  .ranking-panel {
    position: static;
  }
}

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

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

  .brand {
    font-size: 20px;
  }

  .hero-section {
    padding-top: 18px;
  }

  .hero-shell {
    min-height: 560px;
    height: auto;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 34px 24px 86px;
    align-items: end;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-hero h1 {
    font-size: 42px;
  }

  .hero-dots {
    left: 24px;
    bottom: 24px;
  }

  .content-section {
    padding: 46px 0;
  }

  .section-head {
    display: grid;
  }

  .movie-grid,
  .featured-grid,
  .small-grid,
  .catalog-grid,
  .category-grid,
  .category-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-card p {
    display: none;
  }

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

  .page-hero,
  .detail-hero {
    min-height: 340px;
    padding: 34px 24px;
    border-radius: 24px;
  }

  .detail-poster {
    min-height: 360px;
  }

  .detail-info,
  .article-section {
    padding: 24px;
  }

  .player-shell {
    border-radius: 24px;
  }

  .ranking-card {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .ranking-poster {
    min-height: 140px;
  }

  .ranking-card h2 {
    font-size: 18px;
  }

  .ranking-card p {
    display: none;
  }

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

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .featured-grid,
  .small-grid,
  .catalog-grid,
  .category-grid,
  .category-card-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-hero h1 {
    font-size: 34px;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
