:root {
  --rose: #e11d48;
  --pink: #db2777;
  --orange: #f97316;
  --ink: #111827;
  --muted: #6b7280;
  --card: rgba(255, 255, 255, 0.88);
  --line: rgba(244, 63, 94, 0.14);
  --shadow: 0 24px 70px rgba(127, 29, 29, 0.14);
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #fffbeb 0%, #fff1f2 52%, #fdf2f8 100%);
}

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

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9f1239;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

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

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

.nav-link {
  padding: 10px 15px;
}

.nav-link:hover,
.mobile-nav-link:hover {
  color: #be123c;
  background: rgba(244, 63, 94, 0.08);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: #be123c;
  background: rgba(244, 63, 94, 0.08);
  border-radius: 14px;
  font-size: 22px;
}

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

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

.mobile-nav-link {
  padding: 12px 14px;
}

.home-hero {
  position: relative;
  height: 640px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(90deg, #e11d48, #db2777, #f97316);
}

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

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

.hero-bg,
.hero-overlay,
.detail-bg,
.detail-mask {
  position: absolute;
  inset: 0;
}

.hero-bg img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-bg::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(251, 146, 60, 0.25), transparent 34%);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.82) 0%, rgba(136, 19, 55, 0.48) 52%, rgba(234, 88, 12, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 44px;
}

.hero-text {
  max-width: 720px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-text h1,
.hero-text h2 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.08em;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.hero-summary {
  max-width: 680px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span {
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.page-actions,
.quick-search-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 18px 36px rgba(225, 29, 72, 0.32);
}

.primary-btn.small {
  min-height: 44px;
  padding: 0 18px;
}

.ghost-btn {
  min-height: 48px;
  padding: 0 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ghost-btn.light {
  color: #be123c;
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.16);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(225, 29, 72, 0.22);
}

.hero-poster {
  position: relative;
  display: block;
  flex: 0 0 290px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 34px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.6), rgba(249, 115, 22, 0.5));
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 16px;
  text-align: center;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.44);
  border-radius: 999px;
}

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

.quick-search {
  margin-top: -44px;
  position: relative;
  z-index: 10;
}

.quick-search-card,
.page-title-block,
.content-section,
.category-overview-card,
.player-card,
.detail-article,
.rank-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-search-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border-radius: 30px;
}

.quick-search-card h2,
.section-heading h2,
.page-title-block h1,
.detail-info h1,
.detail-article h2 {
  color: #881337;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.quick-search-card h2,
.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.quick-search-card p,
.section-heading p,
.page-title-block p,
.movie-line,
.detail-article p,
.footer-inner p {
  color: var(--muted);
  line-height: 1.8;
}

input[type="search"] {
  width: min(100%, 420px);
  min-height: 48px;
  padding: 0 18px;
  color: #881337;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 999px;
  outline: none;
}

input[type="search"]:focus {
  border-color: rgba(225, 29, 72, 0.65);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.main-stack,
.page-main,
.detail-content {
  display: grid;
  gap: 30px;
  padding-top: 34px;
  padding-bottom: 52px;
}

.content-section {
  padding: clamp(22px, 3vw, 34px);
  border-radius: 34px;
}

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

.section-more,
.text-link {
  color: #be123c;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 20px;
}

.wide-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.movie-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(127, 29, 29, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(127, 29, 29, 0.18);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.34), rgba(249, 115, 22, 0.3));
  aspect-ratio: 2 / 3;
}

.poster-frame img,
.rank-poster img,
.category-tile img,
.category-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-frame img,
.category-tile:hover img,
.rank-poster:hover img {
  transform: scale(1.06);
}

img.is-hidden {
  display: none;
}

.poster-badge,
.poster-year {
  position: absolute;
  z-index: 2;
  padding: 6px 9px;
  color: #ffffff;
  background: rgba(136, 19, 55, 0.78);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.poster-badge {
  left: 10px;
  top: 10px;
}

.poster-year {
  right: 10px;
  bottom: 10px;
}

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

.movie-card h3 {
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-meta,
.movie-tags {
  margin-top: 8px;
  color: #be123c;
  font-size: 12px;
  font-weight: 800;
}

.movie-line {
  display: -webkit-box;
  min-height: 46px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 20px;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #be123c, #f97316);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(127, 29, 29, 0.18);
}

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.38;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.08));
}

.category-tile span,
.category-tile em {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
}

.category-tile span {
  bottom: 62px;
  font-size: 26px;
  font-style: normal;
  font-weight: 950;
}

.category-tile em {
  bottom: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

.ranking-panel .rank-list,
.rank-card-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 18px;
}

.rank-no {
  color: #e11d48;
  font-weight: 950;
}

.rank-title {
  color: #111827;
  font-weight: 900;
}

.rank-meta {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.page-title-block {
  overflow: hidden;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 36px;
}

.page-title-block h1 {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1;
}

.page-title-block .hero-kicker {
  color: #be123c;
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.14);
}

.category-overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.category-overview-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 28px;
}

.category-cover {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  height: 180px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.32), rgba(249, 115, 22, 0.24));
}

.category-overview-card h2 {
  color: #881337;
  font-size: 25px;
  font-weight: 950;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pagination a {
  min-width: 44px;
  padding: 11px 15px;
  text-align: center;
  color: #be123c;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 999px;
  font-weight: 900;
}

.pagination a.is-current {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.rank-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 16px;
  border-radius: 26px;
}

.rank-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.3), rgba(249, 115, 22, 0.3));
}

.rank-card-body h2 {
  color: #111827;
  font-size: 24px;
  font-weight: 950;
}

.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 20px;
}

.detail-main {
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 50%, #fdf2f8 100%);
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(90deg, #881337, #be123c, #ea580c);
}

.detail-mask {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(136, 19, 55, 0.64), rgba(249, 115, 22, 0.18));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
  gap: 42px;
  min-height: 620px;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.44), rgba(249, 115, 22, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 32px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.35);
}

.detail-info h1 {
  max-width: 900px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.detail-one-line {
  max-width: 900px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.8;
}

.detail-content {
  margin-top: -78px;
  position: relative;
  z-index: 5;
}

.player-card {
  padding: 16px;
  border-radius: 34px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  background: #020617;
  border-radius: 26px;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.68), rgba(136, 19, 55, 0.58));
  text-align: center;
}

.player-overlay.is-hidden {
  display: none;
}

.play-circle {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  padding-left: 4px;
  color: #be123c;
  background: #ffffff;
  border-radius: 999px;
  font-size: 38px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.player-overlay strong {
  font-size: 26px;
  font-weight: 950;
}

.player-overlay em {
  color: rgba(255, 255, 255, 0.8);
  font-style: normal;
  font-weight: 800;
}

.detail-article {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 34px;
}

.detail-article h2 {
  font-size: 30px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.detail-meta-grid div {
  padding: 16px;
  background: rgba(244, 63, 94, 0.06);
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 18px;
}

.detail-meta-grid span {
  display: block;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 800;
}

.detail-meta-grid strong {
  color: #881337;
  font-weight: 950;
}

.adjacent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.adjacent-links a {
  padding: 10px 14px;
  color: #be123c;
  background: rgba(244, 63, 94, 0.08);
  border-radius: 999px;
  font-weight: 900;
}

.site-footer {
  margin-top: 20px;
  padding: 34px 0;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(244, 63, 94, 0.12);
}

.footer-inner {
  display: grid;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #be123c;
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

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

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

  .home-hero,
  .detail-hero {
    min-height: auto;
    height: auto;
  }

  .hero-content,
  .detail-hero-inner {
    grid-template-columns: 1fr;
    display: grid;
    min-height: 620px;
    padding-top: 60px;
    padding-bottom: 72px;
  }

  .hero-poster,
  .detail-poster {
    width: min(72vw, 280px);
    margin: 0 auto;
  }

  .quick-search-card,
  .section-heading,
  .rank-row {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .category-overview-card,
  .rank-card {
    grid-template-columns: 1fr;
  }

  .rank-row {
    display: grid;
  }

  input[type="search"] {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .movie-grid,
  .wide-grid,
  .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

  .page-title-block,
  .content-section,
  .detail-article {
    border-radius: 24px;
  }

  .play-circle {
    width: 68px;
    height: 68px;
    font-size: 30px;
  }
}
