html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f8fafc;
  color: #1f2937;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #ec4899);
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.28);
}

.brand-name {
  font-size: clamp(20px, 2vw, 26px);
  background: linear-gradient(90deg, #0284c7, #db2777);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 650;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
}

.desktop-nav a,
.mobile-panel a,
.footer-links a,
.text-link,
.view-more {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.footer-links a:hover,
.text-link:hover,
.view-more:hover {
  color: #0284c7;
}

.header-search {
  position: relative;
  width: min(270px, 24vw);
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  padding: 11px 44px 11px 18px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.header-search button {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #64748b;
  background: transparent;
}

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

.mobile-panel {
  border-top: 1px solid #e5e7eb;
  padding: 16px;
  background: #fff;
}

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  font-weight: 650;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  padding: 11px 16px;
}

.mobile-search button,
.primary-button,
.ghost-button,
.view-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 750;
}

.mobile-search button {
  border: 0;
  padding: 0 18px;
  color: #fff;
  background: #0ea5e9;
}

.hero-section {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #38bdf8 0%, #f9a8d4 52%, #fde68a 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(56px);
  opacity: 0.32;
  background: #fff;
  animation: pulseGlow 3.8s ease-in-out infinite;
}

.hero-glow-one {
  width: 150px;
  height: 150px;
  left: 8%;
  top: 12%;
}

.hero-glow-two {
  width: 190px;
  height: 190px;
  right: 13%;
  top: 28%;
  background: #fbcfe8;
  animation-delay: 0.35s;
}

.hero-glow-three {
  width: 230px;
  height: 230px;
  left: 36%;
  bottom: 12%;
  background: #bae6fd;
  animation-delay: 0.7s;
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.hero-wrap {
  position: relative;
  height: 100%;
}

.hero-slides {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  align-items: center;
  gap: 48px;
  padding: 52px 64px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-pill {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 9px 18px;
  border-radius: 999px;
  color: #0369a1;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 750;
}

.hero-copy h1 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 16px 36px rgba(15, 23, 42, 0.24);
}

.hero-copy p {
  max-width: 670px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
  text-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}

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

.primary-button {
  padding: 15px 30px;
  color: #0284c7;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.ghost-button {
  padding: 14px 26px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.03);
}

.hero-poster {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.32);
  transform: rotate(1deg);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 0;
}

.hero-next {
  right: 0;
}

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

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

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

.section {
  padding: 76px 0;
}

.white-section {
  background: #fff;
}

.soft-section {
  background: linear-gradient(135deg, #f0f9ff, #fdf2f8);
}

.gradient-section {
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #ec4899);
}

.section-heading,
.section-heading-row {
  margin-bottom: 30px;
}

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

.center-heading {
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 850;
  font-size: 12px;
}

.gradient-section .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.section-heading h2,
.section-heading-row h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.gradient-section h2,
.gradient-section p {
  color: #fff;
}

.section-heading p {
  max-width: 720px;
  margin: 12px 0 0;
  color: #64748b;
  line-height: 1.8;
}

.center-heading p {
  margin-left: auto;
  margin-right: auto;
}

.view-more,
.text-link {
  color: #0284c7;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e0f2fe, #fce7f3);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.58), transparent 65%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

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

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

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(14, 165, 233, 0.88);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 750;
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0 0 9px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.38;
  font-weight: 800;
}

.card-body h2 a:hover {
  color: #0284c7;
}

.card-body p {
  margin: 0 0 12px;
  color: #64748b;
  line-height: 1.72;
  font-size: 14px;
}

.card-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.card-meta span,
.rank-meta span,
.detail-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 700;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(90deg, #fff, #f8fafc);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.rank-cover {
  position: relative;
  display: block;
}

.rank-cover span {
  position: absolute;
  top: -10px;
  left: -10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.28);
  font-weight: 900;
}

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

.rank-item h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 850;
}

.rank-item h2 a:hover {
  color: #0284c7;
}

.rank-item p {
  margin: 0 0 10px;
  color: #64748b;
  line-height: 1.65;
}

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

.category-tile {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.22);
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  margin-top: 18px;
  font-size: 16px;
}

.category-tile small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.page-hero,
.detail-hero {
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #ec4899);
}

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

.page-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb a::after {
  content: "›";
  margin-left: 9px;
  color: rgba(255, 255, 255, 0.62);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 32px;
  align-items: center;
}

.page-hero-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.22);
}

.page-hero-poster img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

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

.category-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.category-image {
  border-radius: 18px;
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 0 0 14px;
  color: #64748b;
  line-height: 1.7;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 13px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
}

.filter-bar input,
.filter-bar select {
  height: 48px;
  padding: 0 18px;
}

.detail-hero {
  padding: 34px 0 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(270px, 0.82fr);
  gap: 30px;
  align-items: start;
}

.player-card {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  display: block;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.18));
  cursor: pointer;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0284c7;
  font-size: 32px;
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.32);
}

.play-overlay strong {
  font-size: 20px;
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.detail-content {
  margin: 24px 0 76px;
  padding: 28px;
  border-radius: 24px;
  color: #1f2937;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.detail-category {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-weight: 750;
}

.detail-content h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-content .lead {
  margin: 0 0 16px;
  color: #475569;
  font-size: 19px;
  line-height: 1.8;
}

.detail-content h2 {
  margin: 26px 0 10px;
  color: #1f2937;
  font-size: 24px;
  font-weight: 900;
}

.detail-content p {
  margin: 0;
  color: #475569;
  line-height: 1.95;
}

.detail-sidebar {
  position: sticky;
  top: 104px;
  margin-top: 42px;
}

.detail-poster {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.25);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.side-panel {
  margin-top: 20px;
  padding: 22px;
  border-radius: 22px;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.side-panel h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 900;
}

.side-links {
  display: grid;
  gap: 12px;
}

.side-links a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
}

.side-links a:hover {
  color: #0284c7;
  background: #e0f2fe;
}

.side-links span {
  font-weight: 800;
}

.side-links small {
  color: #64748b;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
  padding: 54px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
}

.footer-brand {
  color: #fff;
  font-size: 24px;
}

.site-footer p {
  max-width: 460px;
  margin: 14px 0 0;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 20px;
}

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

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

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

  .menu-toggle {
    display: block;
  }

  .header-search {
    margin-left: auto;
  }

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

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

@media (max-width: 860px) {
  .header-inner {
    height: 68px;
  }

  .header-search {
    display: none;
  }

  .hero-section {
    min-height: 720px;
    height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 42px 24px 92px;
    text-align: center;
  }

  .hero-slide.is-active {
    display: grid;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-poster {
    width: min(320px, 82vw);
    margin: 0 auto;
  }

  .hero-prev {
    left: 12px;
  }

  .hero-next {
    right: 12px;
  }

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

  .rank-item,
  .category-card,
  .detail-layout,
  .page-hero-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
    margin-top: 0;
    margin-bottom: 32px;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }
}

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

  .brand-name {
    font-size: 19px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading-row {
    display: grid;
    align-items: start;
  }

  .three-col,
  .four-col,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .rank-cover img {
    width: 112px;
    height: 86px;
  }

  .detail-content {
    padding: 22px;
  }
}
