:root {
  --site-pink: #ec4899;
  --site-pink-dark: #be185d;
  --site-rose: #fb7185;
  --site-soft: #fdf2f8;
  --site-text: #1f2937;
  --site-muted: #6b7280;
  --site-border: #fbcfe8;
  --site-white: #ffffff;
  --site-shadow: 0 20px 45px rgba(190, 24, 93, 0.14);
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 42%, #fdf2f8 100%);
  color: var(--site-text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, #f472b6 0%, #f9a8d4 45%, #fda4af 100%);
  box-shadow: 0 12px 34px rgba(190, 24, 93, 0.18);
  backdrop-filter: blur(8px);
}

.header-shell,
.footer-shell,
.content-section,
.breadcrumb,
.detail-layout,
.page-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.header-shell {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.brand-name {
  font-size: 1.35rem;
  white-space: nowrap;
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.header-search input {
  width: 210px;
  background: transparent;
  color: #ffffff;
  outline: none;
  padding: 8px 12px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.header-search button,
.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button {
  padding: 8px 16px;
  color: var(--site-pink-dark);
  background: #ffffff;
}

.primary-button {
  min-height: 44px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--site-pink) 0%, var(--site-rose) 100%);
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.3);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--site-shadow);
}

.ghost-button {
  min-height: 44px;
  padding: 0 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
}

.ghost-button.dark {
  color: var(--site-pink-dark);
  border-color: var(--site-border);
  background: #ffffff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  flex-wrap: wrap;
  gap: 10px;
}

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

.mobile-link,
.mobile-brand {
  padding: 9px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.home-hero {
  position: relative;
  height: min(74vh, 650px);
  min-height: 520px;
  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-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0.58) 44%, rgba(190, 24, 93, 0.28) 100%), linear-gradient(0deg, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.08) 55%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 74px;
  max-width: 720px;
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 14px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.14);
  color: var(--site-pink-dark);
  font-weight: 700;
  font-size: 0.86rem;
}

.hero-kicker {
  color: #ffffff;
  background: rgba(236, 72, 153, 0.72);
}

.hero-content h1,
.hero-content h2 {
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: 1.04;
  font-weight: 900;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
}

.hero-movie-title {
  margin-top: 12px;
  font-size: clamp(1.6rem, 3vw, 2.7rem) !important;
}

.hero-content p {
  max-width: 620px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.8;
}

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

.hero-control {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.44);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.66);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

.hero-dots button.is-active {
  width: 28px;
  background: #ffffff;
}

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

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

.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.12;
  font-weight: 900;
}

.section-title p {
  max-width: 520px;
  color: var(--site-muted);
  line-height: 1.8;
}

.soft-panel {
  width: min(1280px, calc(100% - 32px));
  padding: 48px;
  border-radius: 34px;
  background: linear-gradient(135deg, #fce7f3 0%, #ffe4e6 100%);
  box-shadow: var(--site-shadow);
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  color: #ffffff;
  box-shadow: var(--site-shadow);
}

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.86) 0%, rgba(17, 24, 39, 0.2) 100%);
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 20px;
}

.category-tile span {
  margin-top: 102px;
  font-size: 1.25rem;
  font-weight: 800;
}

.category-tile p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.55;
}

.category-tile:hover img {
  opacity: 0.92;
  transform: scale(1.08);
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(190, 24, 93, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.72) 0%, rgba(17, 24, 39, 0.06) 62%);
}

.movie-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(236, 72, 153, 0.84);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.68);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.movie-info h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 800;
}

.movie-info h3 a:hover {
  color: var(--site-pink);
}

.movie-info p {
  margin-top: 8px;
  color: var(--site-muted);
  line-height: 1.65;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: #6b7280;
  font-size: 0.86rem;
}

.movie-meta span,
.detail-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #fdf2f8;
  color: #be185d;
}

.movie-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.movie-tags span,
.tag-cloud span {
  padding: 4px 9px;
  border-radius: 999px;
  color: #db2777;
  background: #fce7f3;
  font-size: 0.78rem;
}

.filter-panel {
  display: flex;
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(190, 24, 93, 0.08);
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  background: #fff7fb;
}

.filter-panel input {
  flex: 1;
}

.filter-panel input:focus,
.filter-panel select:focus {
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.18);
}

.empty-state {
  padding: 48px;
  text-align: center;
  color: var(--site-muted);
  background: #ffffff;
  border-radius: 24px;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(190, 24, 93, 0.08);
}

.rank-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-pink), var(--site-rose));
  font-weight: 900;
}

.rank-item img {
  width: 92px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-copy strong {
  display: block;
  line-height: 1.4;
  font-weight: 800;
}

.rank-copy em {
  display: block;
  margin-top: 4px;
  color: var(--site-muted);
  font-size: 0.84rem;
  font-style: normal;
}

.rank-side {
  align-self: start;
  position: sticky;
  top: 92px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fce7f3, #ffe4e6);
  box-shadow: var(--site-shadow);
}

.rank-side h2 {
  font-size: 1.6rem;
  font-weight: 900;
}

.rank-side p {
  margin: 16px 0 22px;
  color: var(--site-muted);
  line-height: 1.75;
}

.rank-side .ghost-button {
  margin-top: 12px;
}

.page-hero {
  margin-top: 34px;
  padding: 56px;
  border-radius: 34px;
  background: radial-gradient(circle at top right, rgba(244, 114, 182, 0.32), transparent 36%), linear-gradient(135deg, #ffffff 0%, #fce7f3 100%);
  box-shadow: var(--site-shadow);
}

.page-hero h1 {
  max-width: 780px;
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 900;
}

.page-hero p {
  max-width: 740px;
  margin-top: 18px;
  color: var(--site-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(190, 24, 93, 0.1);
}

.category-card-image {
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
}

.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-large h2 {
  font-size: 1.36rem;
  font-weight: 900;
}

.category-card-large p {
  margin-top: 8px;
  color: var(--site-muted);
  line-height: 1.7;
}

.category-card-large ul {
  margin: 14px 0;
  display: grid;
  gap: 6px;
  color: #be185d;
  font-size: 0.94rem;
}

.text-link {
  color: var(--site-pink-dark);
  width: max-content;
  padding: 8px 14px;
  background: #fce7f3;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(190, 24, 93, 0.1);
}

.ranking-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #111827;
}

.ranking-cover img {
  width: 100%;
  height: 116px;
  object-fit: cover;
}

.ranking-cover span {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--site-pink);
  font-weight: 900;
}

.ranking-card h2 {
  font-size: 1.2rem;
  font-weight: 900;
}

.ranking-card p {
  margin-top: 8px;
  color: var(--site-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: var(--site-muted);
  font-size: 0.94rem;
}

.breadcrumb a {
  color: var(--site-pink-dark);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  margin-top: 22px;
}

.detail-main,
.detail-side,
.detail-info,
.article-block,
.player-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(190, 24, 93, 0.1);
}

.detail-main {
  background: transparent;
  box-shadow: none;
}

.player-card {
  overflow: hidden;
  padding: 14px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #000000;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}

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

.play-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.64;
}

.play-circle {
  position: relative;
  z-index: 1;
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-pink), var(--site-rose));
  font-size: 2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.detail-info,
.article-block {
  margin-top: 20px;
  padding: 28px;
}

.detail-info h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.12;
  font-weight: 900;
}

.detail-one-line {
  margin-top: 14px;
  color: var(--site-muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.article-block h2 {
  margin-top: 26px;
  font-size: 1.45rem;
  font-weight: 900;
}

.article-block h2:first-child {
  margin-top: 0;
}

.article-block p {
  margin-top: 12px;
  color: #374151;
  line-height: 1.9;
  font-size: 1.02rem;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 92px;
  padding: 22px;
}

.detail-side h2 {
  margin-bottom: 16px;
  font-size: 1.45rem;
  font-weight: 900;
}

.compact-rank .rank-item {
  grid-template-columns: 34px 76px minmax(0, 1fr);
  padding: 10px;
}

.compact-rank .rank-item img {
  width: 76px;
  height: 52px;
}

.related-section {
  padding-top: 48px;
}

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

.site-footer {
  margin-top: 64px;
  padding: 48px 0 22px;
  background: linear-gradient(180deg, #fdf2f8 0%, #fce7f3 100%);
  border-top: 1px solid #fbcfe8;
}

.footer-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 12px;
  color: var(--site-text);
}

.footer-brand .brand-mark {
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-pink), var(--site-rose));
}

.footer-brand strong {
  font-size: 1.35rem;
}

.footer-brand p {
  color: var(--site-muted);
  line-height: 1.7;
}

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

.footer-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--site-pink-dark);
  background: #ffffff;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
  color: var(--site-muted);
  text-align: center;
  font-size: 0.92rem;
}

[hidden] {
  display: none !important;
}

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

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

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

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

  .menu-toggle {
    display: flex;
  }

  .home-hero {
    min-height: 580px;
  }

  .hero-content {
    left: 24px;
    right: 24px;
    bottom: 78px;
  }

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

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

  .rank-layout,
  .detail-layout,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .rank-side,
  .detail-side {
    position: static;
  }

  .ranking-card,
  .category-card-large {
    grid-template-columns: 160px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .header-shell {
    height: 64px;
  }

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

  .home-hero {
    height: auto;
    min-height: 620px;
  }

  .hero-control {
    display: none;
  }

  .hero-actions,
  .filter-panel {
    flex-direction: column;
  }

  .hero-actions a,
  .filter-panel input,
  .filter-panel select {
    width: 100%;
  }

  .content-section,
  .soft-panel {
    padding: 42px 0;
  }

  .soft-panel {
    width: min(100% - 24px, 1280px);
    padding: 28px 18px;
  }

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

  .page-hero {
    width: min(100% - 24px, 1280px);
    padding: 34px 22px;
    border-radius: 26px;
  }

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

  .ranking-cover img,
  .category-card-image img {
    height: 190px;
  }

  .detail-info,
  .article-block,
  .detail-side {
    padding: 20px;
  }

  .breadcrumb,
  .detail-layout {
    width: min(100% - 24px, 1280px);
  }
}
