:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --orange: #f97316;
  --amber: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #f3f4f6;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 14px 24px rgba(236, 72, 153, 0.26);
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(90deg, var(--pink-dark), var(--orange));
  -webkit-background-clip: text;
  color: transparent;
}

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

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

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

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

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

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

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  color: #374151;
  background: #f3f4f6;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: #ffffff;
}

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

.mobile-nav .nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f9fafb;
}

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

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

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

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(1.2);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 22%, rgba(249, 115, 22, 0.48), transparent 35%),
    linear-gradient(120deg, rgba(17, 24, 39, 0.94) 0%, rgba(88, 28, 135, 0.74) 48%, rgba(236, 72, 153, 0.38) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 54px 0;
}

.hero-copy {
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pink-dark);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-copy .eyebrow,
.sub-hero .eyebrow,
.detail-info .eyebrow {
  color: #ffd5e8;
}

.hero h1 {
  margin: 18px 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero p {
  width: min(720px, 100%);
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.tag-row span {
  background: #fff1f2;
  color: #be185d;
}

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

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 24px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  box-shadow: 0 16px 28px rgba(236, 72, 153, 0.28);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.section-link {
  color: var(--pink-dark);
  background: #fff1f2;
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  display: block;
  border-radius: 30px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
}

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

.hero-dot {
  width: 42px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

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

.search-panel {
  padding: 34px 0;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.search-box {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 15px 35px rgba(236, 72, 153, 0.1);
}

.search-box h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.16;
}

.search-controls {
  display: flex;
  gap: 10px;
}

.search-controls input,
.filters input,
.filters select {
  width: 100%;
  border: 1px solid #fee2e2;
  border-radius: 16px;
  padding: 14px 16px;
  background: #ffffff;
  outline: none;
}

.search-controls input:focus,
.filters input:focus,
.filters select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.search-controls button {
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--pink), var(--orange));
}

.search-results {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.search-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid #fee2e2;
  border-radius: 18px;
  background: #ffffff;
}

.search-item img {
  width: 62px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.search-item strong {
  display: block;
  font-size: 17px;
}

.search-item span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 78px 0;
}

.soft-bg {
  background: linear-gradient(135deg, #fff7ed, #fdf2f8 50%, #fffbeb);
}

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

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink-dark), var(--orange));
  -webkit-background-clip: text;
  color: transparent;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}

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

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

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

.play-dot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 34px;
  background: rgba(17, 24, 39, 0.34);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.card-body {
  padding: 14px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card-body h3 {
  margin: 8px 0 6px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
}

.card-body h3 a:hover {
  color: var(--pink-dark);
}

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

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 26px;
  padding: 22px;
  color: #ffffff;
  background: #111827;
  box-shadow: var(--shadow);
}

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.88), rgba(236, 72, 153, 0.45));
}

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

.category-card span {
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.category-card strong {
  display: block;
  margin: 6px 0 52px;
  font-size: 34px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

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

.sub-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 75% 20%, rgba(249, 115, 22, 0.42), transparent 30%),
    linear-gradient(120deg, #111827, #7e22ce 52%, #ec4899);
}

.sub-hero h1 {
  margin: 10px 0;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.08;
  font-weight: 900;
}

.sub-hero p {
  width: min(760px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.filter-bar {
  padding: 26px 0;
  background: #fff7ed;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
}

.detail-head {
  padding: 54px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 18%, rgba(249, 115, 22, 0.5), transparent 34%),
    linear-gradient(120deg, #111827, #831843 56%, #f97316);
}

.detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster {
  border-radius: 28px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-info h1 {
  margin: 16px 0 14px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.03;
  font-weight: 900;
}

.one-line {
  max-width: 840px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 28px;
}

.player-section {
  padding: 46px 0;
  background: #0f172a;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.32);
}

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

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 16px 32px rgba(236, 72, 153, 0.35);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.big-play.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.88);
}

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

.story-card,
.side-card {
  border-radius: var(--radius);
  padding: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.story-card h2,
.side-card h2 {
  margin: 12px 0 14px;
  font-size: 28px;
  line-height: 1.2;
}

.story-card p {
  color: #374151;
  font-size: 17px;
}

.side-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.side-card dt {
  color: var(--muted);
  font-size: 13px;
}

.side-card dd {
  margin: -8px 0 0;
  font-weight: 800;
}

.category-section {
  padding: 70px 0;
}

.category-section:nth-child(even) {
  background: #fff7ed;
}

.site-footer {
  padding: 58px 0 24px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.footer-brand .brand-text strong {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
}

.footer-grid p {
  max-width: 560px;
  margin: 18px 0 0;
  color: #9ca3af;
}

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

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 14px;
  text-align: center;
}

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

  .hero-content {
    grid-template-columns: 1fr 280px;
  }
}

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

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

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

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

  .hero-poster {
    width: min(320px, 80vw);
    margin: 0 auto;
  }

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

  .filters {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-grid {
    display: grid;
    align-items: start;
  }

  .footer-links {
    text-align: left;
  }
}

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

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

  .brand-text em {
    display: none;
  }

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

  .hero h1,
  .detail-info h1,
  .sub-hero h1 {
    font-size: 38px;
  }

  .search-controls {
    display: grid;
  }

  .movie-grid,
  .movie-grid.wide,
  .movie-grid.compact,
  .category-grid {
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 15px;
  }

  .category-card {
    min-height: 190px;
  }
}
