html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #fff7f8;
  color: #1f2937;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

img {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(249, 115, 22, 0.16));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #111827;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #f43f5e, #f97316);
  box-shadow: 0 18px 35px rgba(244, 63, 94, 0.28);
}

.brand-text {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: all 0.2s ease;
}

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

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #ffe4e6;
}

.nav-search input,
.hero-search-card input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
}

.nav-search input {
  width: 150px;
  padding: 8px 10px;
}

.nav-search button,
.hero-search-card button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #f43f5e, #f97316);
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.22);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: #e11d48;
}

.hero-stage {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

.hero-mask,
.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.56) 42%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1180px;
  color: #fff;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-content h1 {
  max-width: 720px;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.hero-kicker {
  margin-bottom: 16px;
  color: #fecdd3;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.7;
}

.hero-actions,
.detail-tags,
.hero-tags,
.footer-links,
.tag-row,
.detail-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 34px;
  gap: 14px;
}

.primary-btn,
.ghost-btn,
.text-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: all 0.25s ease;
}

.primary-btn {
  padding: 13px 26px;
  color: #fff;
  background: linear-gradient(135deg, #f43f5e, #f97316);
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.28);
}

.primary-btn:hover,
.nav-search button:hover,
.hero-search-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(244, 63, 94, 0.34);
}

.ghost-btn {
  padding: 12px 24px;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-panel {
  position: absolute;
  z-index: 5;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 72px;
  width: min(360px, calc(100% - 32px));
}

.hero-search-card {
  padding: 22px;
  border-radius: 28px;
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-search-card strong {
  display: block;
  font-size: 1.25rem;
}

.hero-search-card span {
  display: block;
  margin-top: 4px;
  color: #6b7280;
}

.hero-search-card form {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding: 7px;
  border: 1px solid #ffe4e6;
  border-radius: 999px;
  background: #fff;
}

.hero-search-card input {
  min-width: 0;
  flex: 1;
  padding: 9px 12px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.quick-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
  font-size: 0.85rem;
  font-weight: 800;
}

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

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

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

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

.content-section.tinted {
  background: linear-gradient(135deg, #fff1f2, #fffbeb);
}

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

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

.section-heading h2,
.ranking-head h2,
.player-section h2,
.story-section h2,
.side-card h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: #6b7280;
}

.section-more,
.text-link {
  color: #e11d48;
}

.section-more:hover,
.text-link:hover {
  color: #f97316;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(244, 63, 94, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

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

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

.type-pill,
.rank-mark {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.type-pill {
  left: 12px;
  padding: 6px 10px;
  background: rgba(244, 63, 94, 0.86);
  font-size: 0.78rem;
}

.rank-mark {
  right: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.72);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  gap: 8px;
  color: #e11d48;
  font-size: 0.8rem;
  font-weight: 900;
}

.card-body h3 {
  margin: 8px 0 0;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #e11d48;
}

.card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 8px 0 0;
  overflow: hidden;
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: 14px;
  gap: 6px;
}

.tag-row span {
  color: #9f1239;
  background: #fff1f2;
  font-size: 0.76rem;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 28px;
  padding: 22px;
  color: #fff;
  background: #111827;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.35s ease;
}

.category-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.76));
}

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

.category-card span {
  display: block;
  margin-top: 110px;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.split-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.ranking-box,
.side-card,
.detail-article {
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.ranking-box {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ranking-head h2 {
  font-size: 1.6rem;
}

.ranking-head a {
  color: #e11d48;
  font-weight: 900;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list a {
  display: grid;
  grid-template-columns: 34px 52px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: #fff7f8;
}

.rank-list a:hover {
  background: #fff1f2;
}

.rank-list img {
  width: 52px;
  height: 68px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-num {
  color: #e11d48;
  font-weight: 900;
}

.rank-title {
  font-weight: 900;
}

.rank-score {
  color: #f97316;
  font-weight: 900;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at top left, #f43f5e, #111827 48%, #030712);
}

.page-hero {
  padding: 82px 0 70px;
}

.page-hero-inner,
.detail-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  line-height: 1.8;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.crumbs a:hover {
  color: #fff;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.filter-panel input,
.filter-panel select {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  font-weight: 700;
}

.filter-panel input {
  min-width: min(360px, 100%);
}

.wide-filter input {
  min-width: min(460px, 100%);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.category-cover {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
}

.category-cover img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 8px 0 0;
  font-size: 1.4rem;
  font-weight: 900;
}

.category-overview-card p {
  margin: 10px 0 18px;
  color: #6b7280;
  line-height: 1.7;
}

.detail-hero {
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 82px 0;
  background: #111827;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

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

.detail-info h1 {
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 6rem);
}

.lead-text {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.25rem;
  line-height: 1.75;
}

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

.detail-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-stats {
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.82);
}

.detail-stats span {
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
}

.detail-stats strong {
  color: #fff;
}

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

.detail-article {
  padding: 28px;
}

.player-section,
.story-section {
  margin-bottom: 34px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 28px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.22), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.player-button {
  width: 132px;
  height: 132px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f43f5e, #f97316);
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 24px 60px rgba(244, 63, 94, 0.35);
}

.movie-player.is-playing .player-cover {
  opacity: 0;
  pointer-events: none;
}

.story-section p {
  margin: 14px 0 0;
  color: #374151;
  font-size: 1.05rem;
  line-height: 2;
}

.detail-side {
  position: sticky;
  top: 96px;
}

.side-card {
  padding: 24px;
}

.side-card h2 {
  font-size: 1.45rem;
}

.side-card dl {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px 14px;
  margin: 18px 0 0;
}

.side-card dt {
  color: #9f1239;
  font-weight: 900;
}

.side-card dd {
  margin: 0;
  color: #374151;
  line-height: 1.7;
}

.empty-state {
  margin: 32px 0 0;
  padding: 24px;
  border-radius: 24px;
  color: #9f1239;
  background: #fff1f2;
  text-align: center;
  font-weight: 900;
}

.site-footer {
  padding: 48px 0;
  color: #fff;
  background: #111827;
}

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

.footer-brand {
  font-size: 1.4rem;
  font-weight: 900;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

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

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

  .split-shell,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .ranking-box,
  .detail-side {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav-shell {
    min-height: 68px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav,
  .nav-search {
    display: none;
    width: 100%;
  }

  .site-header.open .site-nav,
  .site-header.open .nav-search {
    display: flex;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .nav-search input {
    flex: 1;
    width: auto;
  }

  .hero-stage {
    height: auto;
    min-height: 760px;
  }

  .hero-content {
    min-height: 580px;
    padding: 80px 0 160px;
  }

  .hero-panel {
    left: 16px;
    right: 16px;
    bottom: 58px;
    width: auto;
  }

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

  .category-overview-card,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 300px;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .filter-panel,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search-card form,
  .nav-search {
    border-radius: 22px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-content h1,
  .detail-info h1 {
    font-size: 2.75rem;
  }

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

  .detail-article {
    padding: 18px;
  }

  .player-button {
    width: 104px;
    height: 104px;
  }
}
