:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --pink-soft: #fdf2f8;
  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  --purple: #8b5cf6;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f8d7e8;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 20px 45px rgba(31, 41, 55, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 5% 2%, rgba(236, 72, 153, 0.16), transparent 26rem),
    radial-gradient(circle at 95% 0%, rgba(245, 158, 11, 0.14), transparent 24rem),
    linear-gradient(135deg, #fdf2f8 0%, #ffffff 45%, #fffbeb 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(248, 215, 232, 0.9);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.06);
}

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

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--amber));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.25);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-size: 23px;
  background: linear-gradient(90deg, var(--pink), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 650;
  color: #4b5563;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--pink);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: #374151;
  background: #fff0f7;
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: #4b5563;
  font-weight: 650;
  border-top: 1px solid #fce7f3;
}

.hero {
  padding: 34px 0 36px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: 30px;
  align-items: center;
  padding: clamp(28px, 5vw, 62px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.90), rgba(17, 24, 39, 0.52), rgba(17, 24, 39, 0.90)),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.08);
  filter: saturate(1.12);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 35%, rgba(236, 72, 153, 0.38), transparent 20rem),
    radial-gradient(circle at 72% 22%, rgba(245, 158, 11, 0.28), transparent 22rem);
}

.hero-copy,
.hero-poster-wrap {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffe8f4;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.hero h2 {
  margin: 24px 0 16px;
  color: #fff;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 30px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #9d174d;
  background: #fce7f3;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags .pill {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(12px);
}

.btn-light {
  color: #4b5563;
  background: #fff;
  border: 1px solid #fbcfe8;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(236, 72, 153, 0.22);
}

.hero-poster-wrap {
  display: flex;
  justify-content: center;
}

.hero-poster {
  width: min(340px, 86%);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 30px;
  border: 10px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
  transform: rotate(4deg);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: clamp(24px, 5vw, 62px);
  right: clamp(24px, 5vw, 62px);
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-dots {
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

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

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.search-panel {
  margin-top: -12px;
  position: relative;
  z-index: 8;
}

.search-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(236, 72, 153, 0.12);
  border: 1px solid #fce7f3;
  backdrop-filter: blur(12px);
}

.search-input {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  outline: none;
  background: #fff;
  color: #374151;
}

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

.main-section {
  padding: 34px 0;
}

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

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--pink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
}

.section-desc {
  margin: 10px 0 0;
  max-width: 700px;
  color: var(--muted);
  line-height: 1.8;
}

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

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

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

.category-card,
.movie-card,
.rank-item,
.detail-card,
.info-panel {
  border: 1px solid #fce7f3;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.08);
}

.category-card {
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.category-icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  margin-bottom: 16px;
}

.category-card h3,
.movie-card h3,
.info-panel h2,
.info-panel h3 {
  margin: 0;
}

.category-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

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

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

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

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

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

.score-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--pink));
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.card-body {
  padding: 18px;
}

.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.movie-card h3 {
  margin-top: 12px;
  color: #111827;
  font-size: 19px;
  line-height: 1.35;
}

.card-summary {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 26px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

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

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

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

.rank-number {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--amber));
  font-size: 22px;
  font-weight: 900;
}

.rank-thumb {
  width: 96px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  background: #fce7f3;
}

.rank-title {
  margin: 0 0 8px;
  font-size: 21px;
  color: #111827;
}

.rank-summary {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.page-hero {
  padding: 50px 0 28px;
}

.page-card {
  padding: clamp(24px, 5vw, 46px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 0% 0%, rgba(236, 72, 153, 0.17), transparent 22rem),
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.14), transparent 20rem),
    rgba(255, 255, 255, 0.82);
  border: 1px solid #fce7f3;
  box-shadow: var(--shadow);
}

.page-card h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: -0.04em;
}

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

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

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

.player-shell {
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.video-box {
  position: relative;
  background: #0f172a;
}

.video-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0f172a;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.20), rgba(15, 23, 42, 0.72)),
    rgba(15, 23, 42, 0.14);
  cursor: pointer;
  transition: opacity 0.25s ease;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--amber));
  box-shadow: 0 18px 35px rgba(236, 72, 153, 0.35);
  font-size: 30px;
}

.player-title {
  padding: 22px;
  color: #fff;
}

.player-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

.player-title p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

.info-panel {
  padding: 24px;
  margin-top: 24px;
}

.info-panel h2,
.info-panel h3 {
  color: #111827;
  font-size: 24px;
}

.info-panel p {
  color: #4b5563;
  line-height: 1.9;
}

.side-poster {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  border: 1px solid #fce7f3;
  box-shadow: var(--shadow);
}

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

.side-poster .side-body {
  padding: 18px;
}

.side-body h2 {
  margin: 0;
  font-size: 22px;
}

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

.site-footer {
  margin-top: 48px;
  padding: 42px 0;
  background: linear-gradient(180deg, rgba(253, 242, 248, 0.80), rgba(252, 231, 243, 0.92));
  border-top: 1px solid #fbcfe8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 9px;
  color: #4b5563;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--pink);
}

.footer-note {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #fbcfe8;
  color: var(--muted);
  font-size: 14px;
}

.empty-state {
  display: none;
  padding: 38px;
  text-align: center;
  color: var(--muted);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #fce7f3;
}

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

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

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

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

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

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-frame {
    min-height: 760px;
    border-radius: 28px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 30px 24px 86px;
  }

  .hero-poster {
    width: min(250px, 75%);
    transform: rotate(0deg);
  }

  .search-card {
    grid-template-columns: 1fr;
  }

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

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

  .rank-item {
    grid-template-columns: 54px 74px 1fr;
  }

  .rank-item .btn {
    grid-column: 1 / -1;
  }

  .rank-number {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 18px;
  }

  .rank-thumb {
    width: 74px;
  }

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

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

  .logo-title {
    font-size: 19px;
  }

  .logo-subtitle {
    display: none;
  }

  .hero h1,
  .hero h2 {
    font-size: 36px;
  }

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

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