:root {
  --color-bg: #fff7fb;
  --color-surface: #ffffff;
  --color-surface-soft: #fff1f7;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-line: #f3d4e3;
  --color-primary: #ec4899;
  --color-primary-dark: #db2777;
  --color-rose: #f43f5e;
  --color-gold: #f59e0b;
  --shadow-soft: 0 18px 45px rgba(236, 72, 153, 0.14);
  --shadow-card: 0 10px 28px rgba(31, 41, 55, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  font-size: 20px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-rose));
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.35);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, var(--color-primary), var(--color-rose));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text em {
  font-size: 12px;
  color: var(--color-muted);
  font-style: normal;
}

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

.main-nav a {
  font-weight: 700;
  color: #4b5563;
  transition: color 0.25s ease;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.header-search {
  position: relative;
  width: 260px;
}

.header-search input,
.mobile-search input,
.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid #e5b7ce;
  background: #ffffff;
  border-radius: 999px;
  outline: 0;
  color: var(--color-text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input {
  height: 42px;
  padding: 0 44px 0 18px;
}

.header-search input:focus,
.mobile-search input:focus,
.toolbar input:focus,
.toolbar select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.header-search button {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-rose));
  transform: translateY(-50%);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--color-primary);
  background: transparent;
  font-size: 26px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(236, 72, 153, 0.12);
  padding: 16px;
  background: #ffffff;
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-search input {
  height: 42px;
  padding: 0 14px;
}

.mobile-search button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.mobile-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-rose));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.28);
}

.mobile-search button {
  padding: 0 18px;
}

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

.mobile-panel nav a {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7fb;
  color: #4b5563;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4f1 0%, #ffffff 45%, #fff1f7 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image: radial-gradient(circle at 12% 20%, rgba(236, 72, 153, 0.28) 0, transparent 30%), radial-gradient(circle at 82% 18%, rgba(244, 63, 94, 0.18) 0, transparent 28%), linear-gradient(90deg, rgba(255, 255, 255, 0.78), transparent);
}

.hero-track {
  position: relative;
  min-height: 620px;
}

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

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

.hero-image {
  position: absolute;
  inset: 0 0 0 auto;
  width: 54%;
  height: 100%;
  overflow: hidden;
  border-radius: 0 0 0 80px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff7fb 0%, rgba(255, 247, 251, 0.68) 22%, rgba(255, 247, 251, 0.08) 60%), linear-gradient(0deg, rgba(31, 41, 55, 0.45), rgba(31, 41, 55, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(640px, 100%);
  padding: 80px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(236, 72, 153, 0.22);
  border-radius: 999px;
  color: var(--color-primary-dark);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(42px, 6vw, 76px);
  background: linear-gradient(90deg, var(--color-primary), var(--color-rose));
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 660px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.secondary-button {
  color: var(--color-primary-dark);
  background: #ffffff;
  border: 2px solid #f7b8d3;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.22);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta span,
.tag,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #9d174d;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(236, 72, 153, 0.18);
  font-size: 13px;
  font-weight: 700;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.25);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-rose));
}

.page-hero {
  padding: 72px 0 44px;
  background: linear-gradient(135deg, #fff1f7 0%, #ffffff 60%, #ffe4f1 100%);
}

.page-hero h1 {
  font-size: clamp(34px, 4vw, 56px);
  color: #1f2937;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.content-section.is-soft {
  background: linear-gradient(180deg, #ffffff 0%, #fff1f7 100%);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  color: #1f2937;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid rgba(236, 72, 153, 0.12);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.42);
  box-shadow: 0 22px 48px rgba(236, 72, 153, 0.18);
}

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

.featured-grid .poster-wrap {
  aspect-ratio: 16 / 10;
}

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

.movie-card:hover .poster-wrap img,
.compact-card:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}

.poster-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(236, 72, 153, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 15px;
}

.card-body strong {
  overflow: hidden;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-body em {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: var(--color-muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9d174d;
  font-size: 12px;
  font-weight: 700;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff1f7;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff, #fff1f7);
  border: 1px solid rgba(236, 72, 153, 0.14);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -48px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.22), transparent 70%);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(236, 72, 153, 0.18);
}

.category-card strong {
  display: block;
  margin-bottom: 12px;
  color: #1f2937;
  font-size: 24px;
}

.category-card p {
  position: relative;
  z-index: 2;
  color: var(--color-muted);
  line-height: 1.7;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 92px 1fr 72px;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(236, 72, 153, 0.12);
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.rank-num {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary), var(--color-rose));
}

.rank-row img {
  width: 92px;
  height: 66px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.35s ease;
}

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

.rank-info strong,
.rank-info em,
.rank-info small {
  display: block;
}

.rank-info strong {
  overflow: hidden;
  color: #1f2937;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0;
  color: var(--color-muted);
  font-style: normal;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.rank-info small {
  color: #9ca3af;
}

.rank-score {
  justify-self: end;
  color: var(--color-gold);
  font-size: 22px;
  font-weight: 900;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 16px;
  margin: 28px 0 34px;
}

.toolbar input,
.toolbar select {
  height: 50px;
  padding: 0 18px;
}

.detail-shell {
  padding: 42px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--color-muted);
  font-size: 14px;
}

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

.detail-top {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
  align-items: start;
  margin-bottom: 42px;
}

.detail-cover {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffe4f1, #ffffff);
  box-shadow: var(--shadow-card);
}

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

.detail-title {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(236, 72, 153, 0.12);
}

.detail-title h1 {
  font-size: clamp(32px, 5vw, 58px);
  background: linear-gradient(90deg, var(--color-primary), var(--color-rose));
  -webkit-background-clip: text;
  color: transparent;
}

.detail-title p {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.player-section,
.text-panel,
.related-panel {
  margin-bottom: 42px;
}

.player-section h2,
.text-panel h2,
.related-panel h2 {
  margin: 0 0 18px;
  color: #1f2937;
  font-size: 30px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: 0 22px 52px rgba(31, 41, 55, 0.28);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.28), rgba(31, 41, 55, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.92);
  font-size: 36px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

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

.text-panel {
  display: grid;
  gap: 24px;
}

.article-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid rgba(236, 72, 153, 0.12);
  box-shadow: var(--shadow-card);
}

.article-card p {
  color: #4b5563;
  line-height: 1.9;
  font-size: 17px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(236, 72, 153, 0.12);
  transition: background 0.25s ease, transform 0.25s ease;
}

.compact-card:hover {
  background: #fff1f7;
  transform: translateY(-3px);
}

.compact-card img {
  width: 88px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.35s ease;
}

.compact-card span {
  min-width: 0;
}

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

.compact-card strong {
  color: #1f2937;
}

.compact-card em {
  margin-top: 6px;
  color: var(--color-muted);
  font-size: 13px;
  font-style: normal;
}

.empty-state {
  display: none;
  padding: 42px;
  text-align: center;
  border-radius: var(--radius-xl);
  color: var(--color-muted);
  background: #ffffff;
  border: 1px solid rgba(236, 72, 153, 0.12);
}

.empty-state.is-visible {
  display: block;
}

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

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

.footer-brand strong {
  color: #ffffff;
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  color: #cbd5e1;
  line-height: 1.8;
}

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

.footer-links a {
  color: #cbd5e1;
  transition: color 0.25s ease;
}

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

.footer-bottom {
  padding: 18px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-bottom p {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

@media (max-width: 820px) {
  .header-inner {
    height: 68px;
  }

  .main-nav,
  .header-search {
    display: none;
  }

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

  .brand-text strong {
    font-size: 20px;
  }

  .hero,
  .hero-track,
  .hero-content {
    min-height: 720px;
  }

  .hero-image {
    inset: auto 0 0;
    width: 100%;
    height: 48%;
    border-radius: 42px 42px 0 0;
  }

  .hero-image::after {
    background: linear-gradient(180deg, #fff7fb 0%, rgba(255, 247, 251, 0.55) 34%, rgba(31, 41, 55, 0.42) 100%);
  }

  .hero-content {
    align-items: start;
  }

  .hero-copy {
    padding-top: 52px;
  }

  .section-heading,
  .toolbar,
  .detail-top,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    display: grid;
  }

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

  .detail-cover {
    max-width: 320px;
  }

  .rank-row {
    grid-template-columns: 42px 76px 1fr;
  }

  .rank-score {
    display: none;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p,
  .page-hero p,
  .detail-title p {
    font-size: 16px;
  }

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

  .rank-row {
    grid-template-columns: 38px 66px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .rank-row img {
    width: 66px;
    height: 52px;
  }

  .rank-num {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .compact-card {
    grid-template-columns: 76px 1fr;
  }

  .compact-card img {
    width: 76px;
    height: 58px;
  }
}
