:root {
  --rose: #e11d48;
  --pink: #db2777;
  --dark: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff1f2;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
}

body {
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 34%, #f9fafb 100%);
  color: var(--dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(12px);
}

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

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 22px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.28);
}

.logo-text {
  font-size: 21px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links a {
  padding: 10px 4px;
  transition: color 0.2s ease;
}

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

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

.header-search input,
.search-panel input,
.filter-select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 11px 14px;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.search-panel input:focus,
.filter-select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

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

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

.mobile-panel .nav-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.35) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  color: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #ffe4e6;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 900;
  max-width: 780px;
}

.hero-summary {
  margin-top: 22px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.9;
}

.hero-meta,
.movie-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-meta {
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff1f2;
  color: #be123c;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta .pill,
.detail-hero .pill {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 14px 32px rgba(225, 29, 72, 0.28);
}

.button-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-side {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

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

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

.hero-side-body h2 {
  font-size: 22px;
  font-weight: 850;
  margin-bottom: 8px;
}

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

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

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

.section {
  padding: 64px 0 0;
}

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

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-desc {
  color: var(--muted);
  line-height: 1.8;
  margin-top: 8px;
  max-width: 760px;
}

.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-card,
.info-card,
.related-card {
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.07);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-card:hover,
.movie-card:hover,
.rank-card:hover,
.related-card:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 29, 72, 0.28);
  box-shadow: var(--shadow);
}

.category-card {
  min-height: 190px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #ffffff, #fff1f2);
}

.category-card strong {
  font-size: 21px;
  font-weight: 850;
}

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

.category-card span {
  color: var(--rose);
  font-weight: 800;
  margin-top: 16px;
}

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

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

.movie-card:hover .movie-poster img,
.related-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.movie-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.24);
}

.movie-score {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.92);
}

.movie-body {
  padding: 16px;
}

.movie-title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-title a:hover {
  color: var(--rose);
}

.movie-desc {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  color: #6b7280;
  font-size: 13px;
  margin-top: 12px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
}

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

.rank-card img {
  width: 72px;
  height: 96px;
  border-radius: 16px;
  object-fit: cover;
}

.page-title-block {
  padding: 56px 0 24px;
}

.page-title-block h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin: 26px 0;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.95);
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.07);
}

.detail-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.70), rgba(17, 24, 39, 0.52)), var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 44px;
  align-items: center;
}

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

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

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.detail-copy p {
  margin-top: 18px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.9;
  font-size: 17px;
}

.detail-meta {
  margin-top: 18px;
}

.breadcrumb {
  margin: 22px auto 0;
  color: #6b7280;
  font-size: 14px;
}

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

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

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

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.55), rgba(136, 19, 55, 0.38));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 24px 70px rgba(225, 29, 72, 0.45);
  font-size: 34px;
  line-height: 1;
}

.article-body {
  padding: 26px;
}

.article-body h2,
.info-card h2 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 14px;
}

.article-body p,
.info-card p {
  color: #4b5563;
  line-height: 1.9;
  margin-top: 12px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 13px;
  padding: 12px;
}

.related-card img {
  width: 90px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
}

.related-card strong {
  font-weight: 850;
  line-height: 1.4;
}

.related-card p {
  color: #6b7280;
  line-height: 1.6;
  font-size: 13px;
  margin-top: 8px;
}

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

.footer-grid {
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
}

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

.site-footer p,
.site-footer li {
  color: #9ca3af;
  line-height: 1.8;
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  color: #9ca3af;
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 42px;
  text-align: center;
  color: #6b7280;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
}

@media (max-width: 1024px) {
  .header-search,
  .site-header .header-inner > .nav-links {
    display: none;
  }

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

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

  .hero-side,
  .detail-cover {
    max-width: 360px;
  }

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

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

@media (max-width: 720px) {
  .header-inner,
  .container,
  .hero-content,
  .detail-layout {
    width: min(100% - 24px, 1180px);
  }

  .logo-text {
    font-size: 18px;
  }

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

  .hero-content {
    gap: 24px;
    padding: 40px 0 80px;
  }

  .hero-side {
    max-width: 280px;
  }

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

  .section-head {
    display: block;
  }

  .rank-card {
    grid-template-columns: 58px 1fr;
  }

  .rank-card img {
    display: none;
  }

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

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

@media (max-width: 480px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-title,
  .detail-copy h1,
  .page-title-block h1 {
    letter-spacing: -0.03em;
  }

  .action-row {
    display: grid;
  }
}
