html {
  background: #fff7ed;
}

body {
  min-height: 100vh;
  color: #1f2937;
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.16), transparent 32rem),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 30rem),
    linear-gradient(180deg, #fff7ed 0%, #f9fafb 36%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  background: #f3f4f6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-nav {
  background: linear-gradient(90deg, #ef4444 0%, #ec4899 48%, #f97316 100%);
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.24);
}

.nav-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;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #ec4899;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.brand-text {
  font-size: 24px;
  text-shadow: 0 3px 12px rgba(15, 23, 42, 0.2);
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fef3c7;
  transform: translateY(-1px);
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.nav-search input,
.mobile-search input {
  width: 220px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 14px;
  color: #374151;
}

.nav-search button,
.mobile-search button {
  border: 0;
  background: #111827;
  color: #ffffff;
  padding: 10px 16px;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  color: #ffffff;
  font-size: 26px;
  border: 0;
  background: transparent;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-panel a {
  padding: 12px 14px;
  border-radius: 16px;
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

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

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

.home-stack,
.page-stack {
  display: grid;
  gap: 56px;
  padding: 48px 0 72px;
}

.hero-section {
  position: relative;
  min-height: 520px;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.88)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.74));
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 74px;
  color: #ffffff;
}

.hero-label {
  display: inline-flex;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fef3c7;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  max-width: 760px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 950;
  margin: 0 0 18px;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.hero-content p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.hero-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 8px 13px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
}

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

.hero-primary,
.hero-secondary,
.section-more a,
.category-section-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-primary,
.section-more a,
.category-section-head a {
  color: #ffffff;
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  box-shadow: 0 16px 28px rgba(139, 92, 246, 0.3);
}

.hero-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-primary:hover,
.hero-secondary:hover,
.section-more a:hover,
.category-section-head a:hover {
  transform: translateY(-2px) scale(1.02);
}

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

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

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

.hero-rail {
  margin-top: -46px;
  position: relative;
  z-index: 2;
}

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

.section-heading h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 950;
  line-height: 1.15;
  margin: 0;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.section-heading p {
  margin-top: 8px;
  color: #6b7280;
}

.section-warm h2 {
  background-image: linear-gradient(90deg, #ef4444, #eab308, #ec4899);
}

.section-blue h2 {
  background-image: linear-gradient(90deg, #3b82f6, #06b6d4, #14b8a6);
}

.section-green h2 {
  background-image: linear-gradient(90deg, #22c55e, #10b981, #14b8a6);
}

.section-orange h2 {
  background-image: linear-gradient(90deg, #f97316, #ef4444, #ec4899);
}

.section-purple h2 {
  background-image: linear-gradient(90deg, #8b5cf6, #ec4899, #ef4444);
}

.section-pink h2 {
  background-image: linear-gradient(90deg, #ec4899, #f43f5e, #f97316);
}

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: inherit;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.poster-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #fce7f3);
}

.poster-box img,
.movie-card-wide img,
.collection-card img,
.side-poster img,
.mini-poster-row img,
.rank-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-box img,
.collection-card:hover img,
.movie-card-wide:hover img {
  transform: scale(1.08);
}

.duration-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.movie-card-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.card-topline,
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.card-topline b {
  color: #f59e0b;
}

.movie-card h3,
.collection-content h3,
.rank-item h3,
.movie-card-wide h3 {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  color: #1f2937;
  margin: 0;
}

.movie-card p,
.movie-card-wide p {
  color: #6b7280;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row,
.genre-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.genre-row span,
.card-kicker {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.genre-row span {
  color: #075985;
  background: #e0f2fe;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

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

.category-tile,
.category-section-card,
.detail-card,
.detail-side > div,
.filter-panel,
.page-hero {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.category-tile {
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
}

.category-tile span {
  font-size: 20px;
  font-weight: 950;
  color: #111827;
}

.category-tile p,
.category-section-head p,
.page-hero p {
  margin: 10px 0 14px;
  color: #6b7280;
  line-height: 1.7;
}

.category-tile div {
  display: grid;
  gap: 7px;
}

.category-tile div a {
  color: #ec4899;
  font-weight: 700;
}

.wide-list,
.ranking-page-list,
.category-section-list {
  display: grid;
  gap: 16px;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 150px;
}

.movie-card-wide img {
  min-height: 100%;
  aspect-ratio: 16 / 10;
}

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

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

.collection-card {
  position: relative;
  min-height: 220px;
  color: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}

.collection-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 10%, rgba(0, 0, 0, 0.78));
}

.collection-content {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
}

.collection-content span {
  display: inline-flex;
  padding: 6px 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.collection-content h3 {
  color: #ffffff;
  font-size: 22px;
}

.collection-content p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.rank-item {
  display: grid;
  grid-template-columns: 64px 122px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  color: inherit;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.14);
}

.rank-item strong {
  font-size: 26px;
  color: #ec4899;
  text-align: center;
}

.rank-item img {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

.rank-item p {
  color: #6b7280;
  line-height: 1.6;
  margin: 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-item span {
  color: #f97316;
  font-weight: 800;
}

.section-more {
  margin-top: 20px;
  text-align: center;
}

.page-hero {
  padding: 38px;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.2), transparent 24rem),
    linear-gradient(135deg, #ffffff, #fff7ed);
}

.page-hero span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: #be123c;
  background: #ffe4e6;
  font-weight: 900;
}

.page-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 950;
  color: #111827;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: #6b7280;
  font-weight: 700;
}

.breadcrumb a {
  color: #ec4899;
}

.filter-panel {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 900;
}

.filter-panel input {
  width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 13px 16px;
  outline: 0;
  background: #ffffff;
}

.filter-panel input:focus {
  border-color: #ec4899;
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-row button {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  color: #7c2d12;
  background: #ffedd5;
  font-weight: 800;
}

.filter-row button.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, #ec4899, #f97316);
}

.category-section-card {
  padding: 22px;
}

.category-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.category-section-head h2 {
  font-size: 26px;
  font-weight: 950;
  margin: 0;
}

.mini-poster-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

.mini-poster-row a {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #374151;
  font-weight: 800;
}

.mini-poster-row img {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
}

.mini-poster-row span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

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

.player-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.22);
}

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

.player-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.58));
  transition: opacity 0.2s ease;
}

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

.player-mask.is-loading .play-ring {
  animation: pulseRing 0.9s ease infinite;
}

.play-ring {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ec4899;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}

.play-ring span {
  transform: translateX(3px);
  font-size: 28px;
}

.player-mask strong {
  font-size: 20px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.36);
}

@keyframes pulseRing {
  50% {
    transform: scale(1.08);
  }
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 950;
  color: #111827;
}

.lead-text {
  margin: 14px 0 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.detail-card .detail-meta span {
  color: #7c2d12;
  background: #ffedd5;
}

.detail-card h2 {
  margin: 26px 0 10px;
  font-size: 22px;
  font-weight: 950;
  color: #111827;
}

.detail-card p {
  color: #374151;
  line-height: 1.9;
}

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

.side-poster {
  overflow: hidden;
}

.side-poster img {
  aspect-ratio: 3 / 4;
}

.side-poster div {
  padding: 18px;
}

.side-poster h2,
.side-list h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 950;
}

.side-poster p {
  color: #6b7280;
  line-height: 1.7;
}

.side-list {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.side-list a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  color: #374151;
  font-weight: 850;
}

.side-list img {
  width: 72px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.site-footer {
  padding: 30px 0;
  color: #ffffff;
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.footer-inner span {
  color: rgba(255, 255, 255, 0.72);
}

[hidden] {
  display: none !important;
}

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

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

  .detail-side {
    position: static;
  }

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

  .nav-search {
    display: none;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .brand-text {
    font-size: 20px;
  }

  .hero-section {
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 82px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-rail {
    margin-top: 18px;
  }

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

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

  .movie-card-wide {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 44px 92px 1fr;
  }

  .rank-item p {
    display: none;
  }

  .mini-poster-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .page-hero,
  .detail-card {
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .shell,
  .nav-inner,
  .mobile-panel,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

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

  .scroll-row {
    grid-auto-columns: 82%;
  }

  .hero-actions {
    display: grid;
  }

  .detail-meta,
  .hero-meta {
    gap: 8px;
  }
}
