* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.32);
  font-size: 14px;
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, #f43f5e, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #4b5563;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #e11d48;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: #111827;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 16px;
  border-top: 1px solid #e5e7eb;
}

.mobile-nav.open {
  display: flex;
}

.mobile-link {
  padding: 12px 8px;
  border-radius: 10px;
}

.mobile-link:hover {
  background: #f9fafb;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #111827;
}

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

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

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

.image-missing {
  visibility: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-top: 68px;
}

.hero-copy {
  width: min(650px, 100%);
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fb7185;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.tag-row span {
  background: #fff1f2;
  color: #be123c;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.34);
}

.btn.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

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

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

.hero-search {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 80px;
  z-index: 4;
  display: flex;
  width: min(520px, calc(100% - 32px));
  transform: translateX(-50%);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 16px 20px;
  background: transparent;
}

.hero-search button {
  border: 0;
  padding: 0 22px;
  color: #ffffff;
  background: #e11d48;
  font-weight: 800;
  cursor: pointer;
}

.section {
  padding: 72px 0;
}

.white-section {
  background: #ffffff;
}

.soft-section {
  background: linear-gradient(180deg, #f9fafb, #ffffff);
}

.section-head {
  margin-bottom: 28px;
}

.split-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.section-head h2,
.page-hero h1,
.article-content h2,
.player-side h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p {
  margin: 0;
  color: #6b7280;
  font-size: 17px;
  line-height: 1.7;
}

.text-link {
  color: #e11d48;
  font-weight: 800;
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
}

.category-main-link {
  display: block;
  min-height: 190px;
  padding: 26px;
}

.category-emoji {
  font-size: 42px;
}

.category-tile h2 {
  margin: 16px 0 8px;
  font-size: 24px;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 26px 26px;
}

.category-samples a {
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.grad-rose {
  background: linear-gradient(135deg, #fb7185, #e11d48);
}

.grad-blue {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.grad-orange {
  background: linear-gradient(135deg, #fb923c, #f97316);
}

.grad-purple {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.grad-pink {
  background: linear-gradient(135deg, #f472b6, #db2777);
}

.grad-cyan {
  background: linear-gradient(135deg, #22d3ee, #0891b2);
}

.grad-green {
  background: linear-gradient(135deg, #34d399, #059669);
}

.grad-slate {
  background: linear-gradient(135deg, #64748b, #111827);
}

.grad-gold {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

.grad-mint {
  background: linear-gradient(135deg, #5eead4, #0d9488);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid #eef2f7;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.14);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2, #f3f4f6);
}

.movie-card.compact .poster-frame {
  aspect-ratio: 16 / 10;
}

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

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

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(244, 63, 94, 0.92);
  box-shadow: 0 10px 26px rgba(244, 63, 94, 0.34);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #e11d48);
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.meta-row span,
.detail-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f3f4f6;
}

.movie-card h2 {
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: #e11d48;
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #6b7280;
  line-height: 1.65;
  font-size: 14px;
}

.page-main {
  padding-top: 66px;
}

.page-hero {
  padding: 76px 0 62px;
  background: linear-gradient(180deg, #fff1f2, #ffffff);
}

.page-hero.category-hero {
  color: #ffffff;
}

.page-hero.category-hero p,
.page-hero.category-hero .eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

.toolbar,
.search-panel {
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid #eef2f7;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.search-field,
.search-input-wrap {
  display: grid;
  flex: 1;
  gap: 8px;
}

.search-field span {
  color: #4b5563;
  font-weight: 800;
}

.search-field input,
.search-input-wrap input {
  width: 100%;
  height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  outline: none;
  padding: 0 16px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-field input:focus,
.search-input-wrap input:focus {
  border-color: #f43f5e;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.13);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #4b5563;
  background: #f3f4f6;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  background: #e11d48;
}

.movie-card.hidden,
.rank-row.hidden {
  display: none;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 100px 130px 130px;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

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

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

.rank-title:hover {
  color: #e11d48;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111827;
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.38));
}

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 54px;
  color: #ffffff;
}

.detail-poster {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #fff1f2, #1f2937);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-copy p {
  margin: 0 0 20px;
  max-width: 790px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.75;
}

.detail-tags {
  margin: 20px 0 26px;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.stream-player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #020617;
  cursor: pointer;
}

.player-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.3), rgba(0, 0, 0, 0.34));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-play span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 20px 46px rgba(244, 63, 94, 0.38);
  font-size: 30px;
}

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

.player-side {
  position: sticky;
  top: 92px;
  padding: 24px;
  border: 1px solid #eef2f7;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.player-side h2 {
  font-size: 26px;
}

.player-side ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.player-side li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #eef2f7;
}

.player-side strong {
  color: #6b7280;
}

.player-side span {
  text-align: right;
  font-weight: 800;
}

.prev-next {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.prev-next a {
  flex: 1;
  display: inline-flex;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  color: #e11d48;
  background: #fff1f2;
  font-weight: 800;
}

.article-content {
  max-width: 900px;
}

.article-content h2 {
  font-size: 30px;
}

.article-content p {
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 50px 0;
}

.footer-brand {
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 420px;
  margin: 12px 0 0;
  color: #6b7280;
  line-height: 1.7;
}

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

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

.footer-links a {
  color: #6b7280;
}

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

.footer-bottom {
  padding: 22px 16px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  text-align: center;
}

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

  .player-layout {
    grid-template-columns: 1fr;
  }

  .player-side {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-carousel {
    min-height: 720px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.86));
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 170px;
  }

  .hero-search {
    bottom: 86px;
  }

  .split-head,
  .toolbar {
    display: grid;
    align-items: start;
  }

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

  .rank-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .rank-row span:nth-child(n+3) {
    display: none;
  }

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

  .detail-poster {
    width: min(260px, 74vw);
  }

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