:root {
  --peach: #fff4e6;
  --coral: #ff9a8b;
  --pink: #ec4899;
  --pink-soft: #fce7f3;
  --purple: #a855f7;
  --lavender: #f8e8ee;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(236, 72, 153, 0.18);
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, var(--peach) 0%, #ffe8e0 44%, var(--lavender) 100%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

a:hover {
  transform: translateY(-2px);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.12);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, #f472b6, #c084fc);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.26);
}

.brand__name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #f472b6, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.desktop-nav a {
  color: #374151;
  font-weight: 700;
}

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

.header-search,
.mobile-search,
.wide-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.wide-search input,
.filter-panel input,
.filter-panel select {
  min-width: 0;
  border: 2px solid #fbcfe8;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input {
  width: 210px;
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f472b6;
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.16);
}

.header-search button,
.mobile-search button,
.wide-search button,
.filter-panel button,
.btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, #f472b6, #a855f7);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  color: var(--text);
  border-radius: 14px;
  background: #fdf2f8;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  padding: 10px 8px;
  font-weight: 800;
  color: #374151;
}

.home-main,
.page-main,
.detail-page {
  padding-top: 68px;
}

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

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

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

.hero-slide__image,
.detail-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #ec4899 48%, #a855f7);
}

.hero-slide__image.is-missing,
.detail-hero__image.is-missing,
.poster-img.is-missing {
  opacity: 0;
}

.hero-slide::before,
.detail-hero::before,
.movie-card__cover::before,
.category-card__image::before,
.ranking-item__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.34), transparent 24%), linear-gradient(135deg, #fb7185, #c084fc 52%, #fbbf24);
}

.hero-slide__shade,
.detail-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.22) 55%, rgba(0, 0, 0, 0.08));
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 88px;
  color: #fff;
}

.hero-slide__content h1,
.detail-hero__content h1,
.page-hero h1 {
  max-width: 840px;
  margin: 0 0 16px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-slide__content p,
.detail-hero__content p,
.page-hero p {
  max-width: 720px;
  margin: 0 0 20px;
  font-size: clamp(16px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.9);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--pink);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-slide__content .eyebrow,
.detail-hero__content .eyebrow,
.page-hero .eyebrow {
  color: #ffd4f0;
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.hero-control--prev {
  left: 26px;
}

.hero-control--next {
  right: 26px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
}

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

.home-search-panel {
  position: relative;
  z-index: 5;
  margin-top: -42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 20px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.home-search-panel h2,
.section-heading h2,
.rank-panel h2,
.info-card h2,
.detail-text h2,
.search-result-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.wide-search input {
  width: 100%;
}

.quick-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  color: #9d174d;
  font-size: 14px;
  font-weight: 800;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
}

.tag-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
}

.tag-row {
  gap: 8px;
}

.tag-row--hero span {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.content-section {
  margin: 58px 0;
}

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

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

.section-heading--simple {
  display: block;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(31, 41, 55, 0.16);
}

.movie-card__cover,
.category-card__image,
.ranking-item__cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5.3;
  background: linear-gradient(135deg, #fb7185, #a855f7);
}

.movie-card__cover img,
.category-card__image img,
.ranking-item__cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .movie-card__cover img,
.category-card:hover .category-card__image img,
.ranking-item:hover .ranking-item__cover img {
  transform: scale(1.08);
}

.movie-card__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--pink);
  font-size: 30px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.32);
  transition: opacity 0.28s ease;
}

.movie-card__play::before {
  content: "";
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.movie-card__play {
  text-indent: 4px;
}

.movie-card__play::after {
  content: "▶";
  position: relative;
  z-index: 1;
}

.movie-card__play {
  font-size: 0;
}

.movie-card:hover .movie-card__play {
  opacity: 1;
}

.movie-card__body {
  padding: 16px;
}

.movie-card__body h2 {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card__body h2 a:hover {
  color: var(--pink);
}

.movie-card__meta {
  margin: 0 0 8px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 800;
}

.movie-card__desc {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.category-strip,
.category-grid {
  display: grid;
  gap: 16px;
}

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

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

.category-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
}

.category-card__image {
  border-radius: 18px;
  aspect-ratio: 1 / 1;
}

.category-card__content strong,
.category-card__content em {
  display: block;
}

.category-card__content strong {
  font-size: 20px;
  font-weight: 900;
}

.category-card__content em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.rank-panel,
.info-card,
.player-card,
.detail-text,
.filter-panel,
.search-result-head {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.rank-panel {
  padding: 24px;
}

.rank-panel ol {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.rank-panel li a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff7fb;
}

.rank-panel li span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  font-weight: 900;
  border-radius: 50%;
  background: linear-gradient(135deg, #f472b6, #a855f7);
}

.rank-panel li em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.text-link {
  color: var(--pink);
  font-weight: 900;
}

.page-hero {
  padding: 86px 0 70px;
  color: #fff;
  background: radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.3), transparent 24%), linear-gradient(135deg, #831843, #a855f7 62%, #fb7185);
}

.page-hero--compact h1 {
  font-size: clamp(36px, 5vw, 60px);
}

.page-hero--compact p {
  color: rgba(255, 255, 255, 0.88);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.pagination a,
.pagination span,
.pagination em {
  display: grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 900;
  background: #fff;
  border: 1px solid var(--line);
}

.pagination span {
  color: #fff;
  background: linear-gradient(90deg, #f472b6, #a855f7);
}

.ranking-list {
  display: grid;
  gap: 16px;
  padding: 54px 0;
}

.ranking-item {
  display: grid;
  grid-template-columns: 110px 56px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
}

.ranking-item__cover {
  border-radius: 18px;
}

.ranking-item__rank {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  border-radius: 50%;
  background: linear-gradient(135deg, #f472b6, #a855f7);
}

.ranking-item__body h2 {
  margin: 0 0 6px;
}

.ranking-item__body p {
  margin: 0 0 10px;
  color: var(--muted);
}

.title-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.title-index li {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.76);
}

.title-index a {
  font-weight: 900;
}

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

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

.detail-hero__content {
  position: relative;
  z-index: 2;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 72px;
  color: #fff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  margin-top: 38px;
}

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card {
  padding: 14px;
}

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

.movie-player {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #080b12;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: #ec4899;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.08));
}

.player-start span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  color: #ec4899;
  font-size: 36px;
  text-indent: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.player-shell.is-playing .player-start {
  display: none;
}

.detail-text {
  padding: 26px;
}

.detail-text p {
  margin: 12px 0 24px;
  color: #4b5563;
  font-size: 17px;
  white-space: pre-line;
}

.detail-side {
  display: grid;
  gap: 18px;
  align-self: start;
  position: sticky;
  top: 92px;
}

.info-card {
  padding: 22px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  margin: 16px 0 0;
}

.info-card dt {
  color: #9ca3af;
  font-weight: 900;
}

.info-card dd {
  margin: 0;
  color: #374151;
}

.search-panel-page {
  padding: 54px 0;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(130px, 1fr)) auto;
  gap: 14px;
  align-items: end;
  padding: 20px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.search-result-head {
  margin: 24px 0;
  padding: 20px;
}

.search-result-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 70px;
  padding: 54px 0 0;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid var(--line);
}

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

.footer-grid p {
  color: var(--muted);
}

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

.footer-grid a:not(.brand) {
  display: block;
  margin: 8px 0;
  color: #4b5563;
  font-weight: 700;
}

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

.footer-bottom {
  margin-top: 34px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

  .split-section,
  .detail-layout,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-slide__content {
    padding-bottom: 76px;
  }

  .hero-control {
    display: none;
  }

  .home-search-panel,
  .section-heading,
  .category-strip,
  .footer-grid,
  .title-index,
  .ranking-item {
    grid-template-columns: 1fr;
  }

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

  .ranking-item__cover {
    width: 140px;
  }
}

@media (max-width: 520px) {
  .site-header__inner {
    gap: 12px;
  }

  .brand__name {
    font-size: 20px;
  }

  .hero-carousel,
  .detail-hero,
  .detail-hero__content {
    min-height: 520px;
    height: 520px;
  }

  .hero-slide__content h1,
  .detail-hero__content h1,
  .page-hero h1 {
    font-size: 36px;
  }

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

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

  .home-search-panel,
  .rank-panel,
  .detail-text,
  .info-card {
    padding: 18px;
  }

  .title-index {
    grid-template-columns: 1fr;
  }
}
