
:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --text-900: #111827;
  --text-700: #374151;
  --text-600: #4b5563;
  --text-500: #6b7280;
  --line: #f2d7df;
  --surface: #ffffff;
  --soft: #fff7f9;
  --shadow: 0 24px 60px rgba(244, 63, 94, 0.16);
  --radius: 1.5rem;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #fff7f9 0%, #ffffff 28%, #fff8fb 100%);
  color: var(--text-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.gradient-text,
.logo-text,
.footer-logo span:last-child {
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

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

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

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
}

.logo-text {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-600);
  font-weight: 600;
  transition: 0.24s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
  color: var(--rose-600);
  background: var(--rose-50);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text-700);
}

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  border-top: 1px solid var(--line);
}

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

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

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(244, 63, 94, 0.25), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.86) 0%, rgba(17, 24, 39, 0.58) 45%, rgba(17, 24, 39, 0.2) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 860px;
  color: #ffffff;
  animation: fadeIn 0.8s ease both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose-500);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-content .eyebrow,
.page-hero .eyebrow {
  color: #ffe4e6;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.hero-subtitle {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag,
.movie-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-tags span {
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.24s ease;
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 16px 34px rgba(244, 63, 94, 0.34);
}

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

.btn.ghost.light {
  color: var(--rose-600);
  background: #ffffff;
  border-color: rgba(244, 63, 94, 0.18);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: 0.24s ease;
}

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

.quick-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: -38px;
}

.quick-grid a {
  padding: 22px;
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-grid strong,
.quick-grid span {
  display: block;
}

.quick-grid strong {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.quick-grid span {
  color: var(--text-500);
  font-size: 0.92rem;
}

.search-panel {
  padding: 60px 0 12px;
}

.search-inner {
  padding: 28px;
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, #ffffff, var(--rose-50));
  box-shadow: 0 20px 44px rgba(244, 63, 94, 0.1);
}

.search-inner h2,
.section-heading h2,
.page-hero h1,
.detail-content h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.search-inner h2,
.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(160px, 0.5fr));
  gap: 14px;
  margin-top: 22px;
}

.search-controls label {
  display: grid;
  gap: 8px;
  color: var(--text-600);
  font-size: 0.9rem;
  font-weight: 700;
}

.search-controls input,
.search-controls select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(244, 63, 94, 0.22);
  border-radius: 16px;
  color: var(--text-900);
  background: #ffffff;
  outline: none;
}

.search-controls input:focus,
.search-controls select:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.search-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(244, 63, 94, 0.13);
  border-radius: 18px;
  background: #ffffff;
}

.search-result-card img {
  width: 64px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
}

.search-result-card strong,
.search-result-card span {
  display: block;
}

.search-result-card strong {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.search-result-card span {
  color: var(--text-500);
  font-size: 0.78rem;
}

.section-block {
  padding: 58px 0;
}

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

.section-heading a {
  color: var(--rose-600);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.06);
  transition: 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.movie-card.hidden-by-filter,
.ranking-item.hidden-by-filter {
  display: none;
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--rose-50);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.34s ease;
}

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(244, 63, 94, 0.9);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

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

.movie-meta {
  color: var(--text-500);
  font-size: 0.82rem;
}

.movie-meta span {
  padding: 0;
  font-weight: 700;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: #c4c4c4;
}

.movie-card h3 {
  min-height: 2.8em;
  margin: 8px 0 8px;
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 800;
}

.movie-card h3 a:hover,
.ranking-item h3 a:hover,
.category-card a:hover,
.footer-grid a:hover,
.breadcrumb a:hover {
  color: var(--rose-600);
}

.movie-card p {
  min-height: 3.3em;
  margin: 0 0 12px;
  color: var(--text-600);
  font-size: 0.9rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  gap: 6px;
}

.tag {
  padding: 5px 9px;
  color: var(--rose-600);
  background: var(--rose-50);
}

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

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

.category-card {
  padding: 20px;
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.05);
}

.category-main-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.category-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  font-size: 1.15rem;
  font-weight: 900;
}

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

.category-card strong {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.category-card em {
  color: var(--text-500);
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.6;
}

.category-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.category-card li a {
  color: var(--text-600);
  font-size: 0.9rem;
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 64px 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}

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

.rank-cover img {
  width: 86px;
  height: 108px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-content h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 850;
}

.rank-content p {
  margin: 0 0 10px;
  color: var(--text-600);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero {
  padding: 92px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

.soft-hero,
.category-hero,
.ranking-hero {
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
}

.page-hero p:last-child,
.page-hero .container > p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.8;
}

.compact-actions {
  margin-top: 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 28px 0 0;
  color: var(--text-500);
  font-size: 0.92rem;
}

.breadcrumb strong {
  color: var(--text-700);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 24px 0 34px;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.22);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.58));
  cursor: pointer;
  transition: 0.25s ease;
}

.player-card.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 18px 45px rgba(244, 63, 94, 0.38);
  font-size: 1.8rem;
}

.play-overlay span:last-child {
  font-size: 1.05rem;
  font-weight: 800;
}

.detail-content,
.side-card {
  padding: 28px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.06);
}

.detail-content h1 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.lead {
  margin: 18px 0 18px;
  color: var(--text-700);
  font-size: 1.08rem;
  line-height: 1.85;
}

.detail-meta {
  align-items: flex-start;
  margin: 0 0 16px;
}

.detail-meta span {
  padding: 7px 11px;
  color: var(--text-700);
  background: #f9fafb;
  border: 1px solid #eef2f7;
}

.large-tags {
  margin-bottom: 24px;
}

.detail-content h2,
.side-card h2 {
  margin: 24px 0 12px;
  font-size: 1.35rem;
  font-weight: 850;
}

.detail-content p {
  color: var(--text-700);
  line-height: 1.9;
}

.poster-large img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.side-card dt {
  color: var(--text-500);
  font-size: 0.86rem;
  font-weight: 700;
}

.side-card dd {
  margin: -8px 0 0;
  color: var(--text-800);
  line-height: 1.6;
}

.related-grid .movie-card.compact p {
  display: none;
}

.site-footer {
  margin-top: 40px;
  padding: 48px 0 24px;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
  background: #ffffff;
}

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

.footer-grid p {
  max-width: 420px;
  color: var(--text-600);
  line-height: 1.8;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer-grid a,
.footer-bottom {
  color: var(--text-500);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
  font-size: 0.9rem;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 48px;
  height: 48px;
  display: none;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.25);
  cursor: pointer;
}

.back-top.visible {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .home-ranking {
    grid-template-columns: 1fr;
  }

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

  .detail-side {
    grid-template-columns: 220px 1fr;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero-slider {
    min-height: 620px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-grid,
  .search-controls,
  .search-results,
  .footer-grid,
  .detail-side {
    grid-template-columns: 1fr;
  }

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

  .ranking-item {
    grid-template-columns: 44px 72px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 0.92rem;
  }

  .rank-cover img {
    width: 72px;
    height: 92px;
  }
}

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

  .header-inner {
    height: 64px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .hero-slider {
    min-height: 660px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 96px;
  }

  .quick-grid {
    margin-top: 16px;
  }

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

  .search-inner,
  .detail-content,
  .side-card {
    padding: 20px;
    border-radius: 22px;
  }

  .section-heading,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
