:root {
  --pink: #ec4899;
  --rose: #f43f5e;
  --orange: #f97316;
  --yellow: #facc15;
  --ink: #111827;
  --muted: #6b7280;
  --line: #fbcfe8;
  --soft: #fdf2f8;
  --paper: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 42%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid #fce7f3;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 26px rgba(236, 72, 153, 0.08);
}

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

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.3);
}

.brand-name,
.footer-brand {
  font-size: 1.34rem;
  background: linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--pink);
}

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

.top-search input,
.mobile-search input,
.hero-search input,
.local-filter-input {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.local-filter-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
}

.top-search button,
.mobile-search button,
.hero-search button,
.primary-btn {
  border: 0;
  color: #fff;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 750;
  cursor: pointer;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 32px rgba(236, 72, 153, 0.3);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #4b5563;
  background: transparent;
  font-size: 1.8rem;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 14px;
  border: 1px solid #fce7f3;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
}

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.hero-slider {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.1));
}

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

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-kicker {
  color: var(--pink);
  font-size: 0.86rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-meta span,
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  color: #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 750;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

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

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

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

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

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

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading h2,
.story-card h2 {
  margin: 4px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.more-link {
  color: var(--pink);
  font-weight: 800;
}

.category-grid,
.movie-grid,
.category-list-grid,
.compact-grid {
  display: grid;
  gap: 22px;
}

.category-grid {
  grid-template-columns: repeat(4, 1fr);
}

.movie-grid {
  grid-template-columns: repeat(4, 1fr);
}

.small-grid {
  grid-template-columns: repeat(2, 1fr);
}

.category-tile,
.category-card,
.movie-card,
.story-card,
.rank-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #fce7f3;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(236, 72, 153, 0.08);
}

.category-tile {
  min-height: 130px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.category-tile::after,
.category-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -42px;
  bottom: -42px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(249, 115, 22, 0.16));
}

.category-tile span {
  font-size: 1.25rem;
  font-weight: 850;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58));
}

.card-badge,
.card-year {
  position: absolute;
  z-index: 2;
  padding: 5px 10px;
  color: #fff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.card-badge {
  top: 10px;
  left: 10px;
  background: var(--pink);
}

.card-year {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.68);
}

.play-hover {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card-body h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.28;
}

.movie-card-body p {
  min-height: 46px;
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 0.94rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wide-band {
  background: linear-gradient(135deg, #fff1f2, #fdf2f8, #ffedd5);
}

.movie-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 4px 18px;
}

.rail-item {
  width: 300px;
  flex: 0 0 300px;
}

.two-column-block {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 32px;
  align-items: start;
}

.rank-panel {
  padding: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 48px 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #fce7f3;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.12);
}

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

.rank-number {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 900;
}

.rank-number.top {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-info span,
.rank-score {
  color: var(--muted);
  font-size: 0.9rem;
}

.rank-score {
  color: var(--pink);
  font-weight: 900;
}

.page-main {
  padding-bottom: 40px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding: 52px;
  color: #111827;
  border-radius: 30px;
  background: linear-gradient(135deg, #fff1f2, #fdf2f8, #ffedd5);
  box-shadow: 0 18px 45px rgba(236, 72, 153, 0.12);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #4b5563;
  font-size: 1.08rem;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 0.94rem;
}

.breadcrumb a {
  color: var(--pink);
  font-weight: 700;
}

.category-list-grid {
  grid-template-columns: repeat(3, 1fr);
}

.category-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.category-covers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.category-covers img {
  width: 100%;
  height: 128px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.25s ease;
}

.category-copy {
  position: relative;
  z-index: 2;
}

.category-copy h2 {
  margin: 4px 0 6px;
}

.category-copy p {
  color: var(--muted);
  margin: 0;
}

.filter-bar {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid #fce7f3;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
}

.local-filter-input {
  width: 100%;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  border: 1px solid var(--line);
  color: #9d174d;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.filter-pill.is-active,
.filter-pill:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  border-color: transparent;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.95), rgba(253, 242, 248, 0.95), rgba(255, 237, 213, 0.88));
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(17, 24, 39, 0.22);
}

.detail-copy h1 {
  color: #111827;
}

.detail-one-line {
  color: #374151;
  font-size: 1.18rem;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.detail-meta-grid span {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
}

.detail-meta-grid strong {
  display: block;
  color: var(--pink);
  font-size: 0.82rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.tag-cloud .tag-pill {
  color: #9d174d;
  background: #fce7f3;
}

.player-section {
  padding-top: 40px;
}

.player-shell {
  overflow: hidden;
  border-radius: 30px;
  background: #0b0f1a;
  box-shadow: 0 26px 60px rgba(17, 24, 39, 0.28);
}

.player-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: #fff;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.36), rgba(244, 63, 94, 0.18));
}

.player-title-row h2 {
  margin: 0;
}

.player-title-row span {
  color: #fecdd3;
}

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

.movie-video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.movie-video {
  position: relative;
  z-index: 1;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  background: #000;
  transition: opacity 0.25s ease;
}

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

.player-cover img {
  object-fit: cover;
  opacity: 0.72;
}

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 2.1rem;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 26px;
}

.story-card {
  padding: 28px;
}

.story-card p {
  color: #374151;
  text-align: justify;
  text-indent: 2em;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #fce7f3;
  border-radius: 18px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.12);
}

.compact-card img {
  width: 120px;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.25s ease;
}

.compact-card strong,
.compact-card span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.search-status {
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 750;
}

.site-footer {
  margin-top: 30px;
  color: #ffe4e6;
  background: linear-gradient(135deg, #831843, #9f1239, #c2410c);
}

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

.footer-brand {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.footer-inner p {
  max-width: 420px;
  color: #ffe4e6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.footer-links a {
  color: #fff7ed;
  font-weight: 650;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #fecdd3;
  font-size: 0.92rem;
}

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

  .menu-toggle {
    display: block;
  }

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

  .two-column-block,
  .detail-hero,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 720px) {
  .nav-wrap {
    height: 64px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .hero-slider {
    height: 520px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 2.4rem;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.54));
  }

  .hero-actions,
  .player-title-row,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-wrap {
    padding: 38px 0;
  }

  .page-hero,
  .detail-hero {
    padding: 28px;
    border-radius: 24px;
  }

  .movie-grid,
  .category-grid,
  .category-list-grid,
  .compact-grid,
  .small-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-row img {
    width: 64px;
    height: 46px;
  }

  .rank-score {
    display: none;
  }

  .compact-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .compact-card img {
    width: 96px;
    height: 64px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
