:root {
  --rose: #f43f5e;
  --pink: #ec4899;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff1f2;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.32);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  font-size: 15px;
  font-weight: 650;
  color: #374151;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
  transition: color 0.25s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
  color: var(--rose);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--rose);
  margin: 5px 0;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 0 24px 22px;
  font-weight: 650;
  color: #374151;
}

.mobile-nav.is-open {
  display: flex;
}

.gradient-text {
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card {
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(244, 63, 94, 0.25);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1s ease, transform 1.2s ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  color: #ffffff;
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

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

.btn-light,
.btn-ghost,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}

.btn-light {
  background: #ffffff;
  color: #111827;
}

.btn-light:hover,
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 35px rgba(244, 63, 94, 0.24);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn-primary {
  background: linear-gradient(90deg, var(--rose), var(--pink));
  color: #ffffff;
}

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

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

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

.search-strip,
.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.search-strip {
  margin-top: -42px;
  position: relative;
  z-index: 8;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.search-strip h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
}

.search-strip p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.filter-panel {
  grid-template-columns: minmax(220px, 1fr) 150px 150px auto;
  width: 100%;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 18px;
  outline: 0;
  background: #ffffff;
  color: #111827;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(244, 63, 94, 0.55);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.page-section {
  padding: 56px 0;
}

.soft-section {
  width: min(1320px, calc(100% - 24px));
  margin: 0 auto;
  padding: 56px max(16px, calc((100% - 1280px) / 2));
  border-radius: 34px;
  background: linear-gradient(180deg, #ffffff, #fff1f2);
}

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff1f2;
  font-size: 24px;
}

.section-more {
  color: var(--rose);
  font-weight: 800;
}

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

.category-card {
  padding: 16px;
}

.category-visual {
  height: 112px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.category-visual span {
  font-size: 42px;
  transition: transform 0.25s ease;
}

.category-card:hover .category-visual span,
.category-wide:hover .category-visual span {
  transform: scale(1.12) rotate(-3deg);
}

.category-card h3,
.category-wide h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 850;
}

.category-card p,
.category-wide p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.category-card small,
.category-wide strong {
  display: block;
  margin-top: 12px;
  color: var(--rose);
  font-size: 13px;
}

.grad-rose { background: linear-gradient(135deg, #fb7185, #fbcfe8); }
.grad-orange { background: linear-gradient(135deg, #fb923c, #fde68a); }
.grad-purple { background: linear-gradient(135deg, #a855f7, #f0abfc); }
.grad-blue { background: linear-gradient(135deg, #60a5fa, #a5f3fc); }
.grad-green { background: linear-gradient(135deg, #34d399, #bbf7d0); }
.grad-pink { background: linear-gradient(135deg, #f472b6, #fecdd3); }
.grad-cyan { background: linear-gradient(135deg, #22d3ee, #bfdbfe); }
.grad-slate { background: linear-gradient(135deg, #94a3b8, #e2e8f0); }
.grad-red { background: linear-gradient(135deg, #ef4444, #fed7aa); }
.grad-indigo { background: linear-gradient(135deg, #818cf8, #c4b5fd); }

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  color: inherit;
}

.poster-frame {
  position: relative;
  height: 330px;
  background: linear-gradient(135deg, #111827, #374151);
  overflow: hidden;
}

.poster-frame img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.08);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35));
  opacity: 0.95;
}

.poster-region,
.poster-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 850;
}

.poster-region {
  top: 12px;
  left: 12px;
  color: #ffffff;
  background: var(--rose);
}

.poster-year {
  top: 12px;
  right: 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.play-chip {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.88);
  color: var(--rose);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-weight: 900;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.card-meta span {
  border-radius: 999px;
  padding: 4px 9px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 750;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.card-body p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.tag-row span {
  color: #4b5563;
  background: #f3f4f6;
}

.card-body small {
  margin-top: auto;
  color: #9ca3af;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.rank-home .rank-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  padding: 26px;
  background: linear-gradient(135deg, #ffffff, #fff1f2);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(229, 231, 235, 0.8);
}

.rank-row span {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.rank-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.rank-poster-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rank-poster-stack .poster-frame {
  height: 260px;
}

.rank-poster-stack .card-body p,
.rank-poster-stack .tag-row,
.rank-poster-stack .card-body small {
  display: none;
}

.sub-hero {
  padding: 78px 0 52px;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(244, 63, 94, 0.92), rgba(236, 72, 153, 0.78) 38%, #111827 100%);
}

.sub-hero span {
  display: inline-flex;
  margin-bottom: 12px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.82);
}

.sub-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.sub-hero p {
  max-width: 780px;
  margin: 16px 0 28px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
  font-size: 18px;
}

.sub-hero .filter-panel {
  max-width: 980px;
}

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

.category-wide {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
}

.category-wide .category-visual {
  margin: 0;
  height: 130px;
}

.is-hidden {
  display: none !important;
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  filter: blur(2px);
  transform: scale(1.04);
  opacity: 0.58;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.36)), linear-gradient(0deg, #111827, rgba(17, 24, 39, 0.12));
}

.detail-top {
  position: relative;
  z-index: 2;
  padding: 54px 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  margin-bottom: 28px;
}

.breadcrumbs a:hover {
  color: #ffffff;
}

.breadcrumbs i {
  font-style: normal;
  opacity: 0.5;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster img {
  height: 390px;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-copy p {
  max-width: 800px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  font-size: 20px;
}

.detail-tags {
  margin-top: 26px;
}

.player-card {
  padding: 16px;
  background: #0f172a;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.9);
  font-size: 34px;
  padding-left: 5px;
  box-shadow: var(--shadow);
}

.play-overlay.is-off {
  display: none;
}

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

.article-card,
.info-card {
  padding: 28px;
}

.article-card h2,
.info-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 900;
}

.article-card p {
  margin: 0 0 24px;
  color: #374151;
  line-height: 1.95;
  font-size: 17px;
}

.article-card p:last-child {
  margin-bottom: 0;
}

.info-card dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.info-card dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.info-card dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-card dt {
  color: var(--muted);
}

.info-card dd {
  margin: 0;
  font-weight: 750;
  line-height: 1.6;
}

.site-footer {
  margin-top: 34px;
  padding: 48px 0 26px;
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
  border-top: 1px solid var(--line);
}

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

.site-footer p {
  max-width: 540px;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #4b5563;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #6b7280;
  font-size: 14px;
}

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-carousel {
    height: 560px;
  }

  .search-strip,
  .filter-panel,
  .rank-home .rank-panel,
  .detail-main,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-poster-stack,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .detail-poster {
    width: 230px;
  }

  .detail-poster img {
    height: 320px;
  }
}

@media (max-width: 640px) {
  .container-custom {
    width: min(100% - 24px, 1280px);
  }

  .hero-carousel {
    height: 520px;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 92px;
  }

  .movie-grid,
  .category-grid,
  .rank-poster-stack,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .poster-frame {
    height: 380px;
  }

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

  .rank-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .rank-row em {
    grid-column: 2;
  }

  .search-strip {
    margin-top: -24px;
    padding: 18px;
  }

  .sub-hero {
    padding: 52px 0 42px;
  }

  .page-section {
    padding: 40px 0;
  }
}
