:root {
  --rose: #f43f5e;
  --pink: #ec4899;
  --rose-dark: #be123c;
  --ink: #111827;
  --muted: #6b7280;
  --line: #f3f4f6;
  --panel: #ffffff;
  --soft: #fff1f2;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

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

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

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

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.34);
}

.brand-text {
  font-size: 22px;
}

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

.nav-link,
.mobile-nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--rose);
  background: #fff1f2;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: rgba(255, 255, 255, 0.96);
}

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

.hero {
  position: relative;
  margin: 28px auto 54px;
}

.hero-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.12);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 18%, rgba(244, 63, 94, 0.38), transparent 36%), linear-gradient(0deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 46px;
  padding: 76px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffe4e6;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  max-width: 720px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 740px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.hero-actions,
.section-actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-actions {
  margin-top: 32px;
}

.primary-button,
.ghost-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 14px 35px rgba(244, 63, 94, 0.36);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.outline-button {
  color: var(--rose);
  border: 1px solid rgba(244, 63, 94, 0.24);
  background: #ffffff;
}

.primary-button:hover,
.ghost-button:hover,
.outline-button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  display: block;
  padding: 14px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.34);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 76px;
  bottom: 42px;
  display: flex;
  gap: 10px;
}

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

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

.hero-search {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: -34px auto 0;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  border: 1px solid rgba(244, 63, 94, 0.12);
}

.hero-search input,
.filter-input,
.filter-select {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #f3d3dc;
  background: #ffffff;
  outline: none;
  color: #111827;
}

.hero-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.section {
  margin: 54px 0;
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--rose);
  font-weight: 900;
}

.section-title,
.page-title {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.section-desc,
.page-desc {
  max-width: 780px;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card,
.category-card,
.info-card,
.rank-row,
.search-panel,
.detail-card {
  background: var(--panel);
  border: 1px solid rgba(244, 63, 94, 0.1);
  border-radius: 26px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 63, 94, 0.28);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.play-chip,
.rank-badge {
  position: absolute;
  color: #ffffff;
  border-radius: 999px;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 8px 18px rgba(244, 63, 94, 0.28);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.84);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 850;
}

.movie-card h3 {
  margin-top: 9px;
  font-size: 19px;
  line-height: 1.28;
  font-weight: 900;
}

.movie-card h3 a:hover,
.footer-links a:hover,
.category-samples a:hover,
.breadcrumb a:hover {
  color: var(--rose);
}

.movie-card p {
  min-height: 68px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

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

.tag-row span,
.detail-tags span {
  padding: 6px 10px;
  color: var(--rose-dark);
  background: #fff1f2;
}

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

.category-card {
  overflow: hidden;
  padding: 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card-main {
  display: block;
}

.category-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.category-card h2,
.info-card h2,
.detail-card h2 {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 950;
}

.category-card p,
.info-card p,
.detail-card p,
.article-body p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.8;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #4b5563;
  font-size: 14px;
}

.page-hero {
  padding: 58px 0 24px;
}

.filter-panel,
.search-panel {
  margin-bottom: 24px;
  padding: 18px;
}

.filter-panel {
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.filter-select {
  max-width: 180px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 28px;
  align-items: start;
  margin: 36px 0 56px;
}

.player-card {
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: var(--shadow);
}

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

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.15), rgba(17, 24, 39, 0.68));
  font-size: 18px;
  font-weight: 900;
}

.play-cover.hidden {
  display: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 18px 45px rgba(244, 63, 94, 0.36);
  font-size: 30px;
}

.detail-card {
  padding: 26px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #6b7280;
  font-size: 14px;
}

.detail-title {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.055em;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #881337;
  background: #fff1f2;
  font-weight: 850;
  font-size: 13px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  background: #fff1f2;
}

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

.article-body {
  display: grid;
  gap: 22px;
  margin: 0 0 56px;
}

.info-card {
  padding: 26px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 82px 96px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 20px;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.rank-thumb {
  width: 96px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.rank-row h2 {
  font-size: 22px;
  font-weight: 950;
}

.rank-row p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.7;
}

.search-panel {
  display: grid;
  gap: 14px;
}

.search-grid {
  margin-top: 24px;
}

.site-footer {
  margin-top: 70px;
  padding: 52px 0 24px;
  color: #e5e7eb;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}

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

.site-footer p {
  max-width: 460px;
  margin-top: 14px;
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.footer-links {
  display: grid;
  gap: 9px;
  color: #d1d5db;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 14px;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 24px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
}

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

  .hero-content,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .mobile-menu-button {
    display: grid;
    place-items: center;
  }

  .header-inner {
    height: 66px;
  }

  .brand-text {
    font-size: 19px;
  }

  .hero-stage,
  .hero-content {
    min-height: 680px;
  }

  .hero-content {
    padding: 36px 22px 86px;
  }

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

  .hero p {
    font-size: 16px;
  }

  .hero-controls {
    left: 22px;
    bottom: 30px;
  }

  .hero-search,
  .rank-row {
    grid-template-columns: 1fr;
  }

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

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

  .movie-card p {
    min-height: 0;
  }

  .section-header,
  .form-row {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-select {
    max-width: none;
  }

  .rank-thumb {
    width: 100%;
    max-width: 160px;
  }
}

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

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

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

  .primary-button,
  .ghost-button,
  .outline-button {
    width: 100%;
  }
}
