body {
  background: #f8fafc;
  color: #1f2937;
}

.site-header {
  backdrop-filter: blur(16px);
}

.logo-mark {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fcd34d;
  display: inline-flex;
  height: 2.25rem;
  justify-content: center;
  transition: transform 0.2s ease;
  width: 2.25rem;
}

.logo-link:hover .logo-mark {
  transform: rotate(12deg) scale(1.06);
}

.dropdown-menu {
  pointer-events: none;
}

.nav-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  pointer-events: auto;
}

.mobile-panel[hidden] {
  display: none;
}

.hero-carousel {
  height: 560px;
  overflow: hidden;
  position: relative;
}

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

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

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

.hero-bg {
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  width: 100%;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.92), rgba(6, 182, 212, 0.65), rgba(244, 63, 94, 0.62)), linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.08));
}

.hero-content {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  height: 100%;
  position: relative;
  z-index: 2;
}

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

.hero-label {
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
  padding: 0.45rem 0.9rem;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 7vw, 5.75rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin-bottom: 1.3rem;
  text-shadow: 0 16px 48px rgba(0, 0, 0, 0.34);
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.8;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-primary,
.hero-secondary {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 800;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.85rem 1.65rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-primary {
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
  color: #e11d48;
}

.hero-secondary {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

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

.hero-poster {
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2rem;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.42);
  display: block;
  overflow: hidden;
  transform: rotate(2deg);
}

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

.hero-poster:hover img {
  transform: scale(1.08);
}

.hero-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 2.4rem;
  height: 3rem;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
  width: 3rem;
  z-index: 4;
}

.hero-nav:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 1.5rem;
}

.hero-next {
  right: 1.5rem;
}

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

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

.hero-dot.is-active {
  background: #ffffff;
  width: 2.1rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-title-line {
  align-items: center;
  display: flex;
  gap: 0.65rem;
}

.section-icon {
  align-items: center;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  display: inline-flex;
  font-size: 1.4rem;
  height: 2.6rem;
  justify-content: center;
  width: 2.6rem;
}

.section-heading h2 {
  color: #1f2937;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  color: #64748b;
  line-height: 1.8;
  margin-top: 0.65rem;
  max-width: 760px;
}

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

.full-grid {
  margin-top: 1.5rem;
}

.movie-card {
  min-width: 0;
}

.movie-card-link {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  display: block;
  height: 100%;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card-link:hover {
  border-color: rgba(20, 184, 166, 0.36);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  transform: translateY(-0.45rem);
}

.movie-card-cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #ccfbf1, #cffafe);
  overflow: hidden;
  position: relative;
}

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

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

.movie-chip {
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  position: absolute;
  right: 0.65rem;
  top: 0.65rem;
}

.region-chip {
  background: #f97316;
}

.movie-play {
  align-items: center;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 1.4rem;
  height: 3.1rem;
  justify-content: center;
  left: 50%;
  opacity: 0;
  padding-left: 0.15rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: 3.1rem;
}

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

.movie-card-body {
  padding: 1rem;
}

.movie-card-body h3 {
  color: #1f2937;
  display: -webkit-box;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.45;
  min-height: 3.05rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card-body p {
  color: #64748b;
  display: -webkit-box;
  font-size: 0.92rem;
  line-height: 1.65;
  margin-top: 0.5rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta-line {
  align-items: center;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8rem;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.movie-meta-line span {
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
}

.movie-row-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.movie-row-link {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-row-link:hover {
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
  transform: translateY(-0.25rem);
}

.movie-row-cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #d1fae5, #ccfbf1);
  overflow: hidden;
  position: relative;
}

.movie-row-cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  width: 100%;
}

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

.play-badge {
  align-items: center;
  background: rgba(16, 185, 129, 0.92);
  border-radius: 999px;
  bottom: 0.75rem;
  color: #ffffff;
  display: inline-flex;
  height: 2.3rem;
  justify-content: center;
  left: 0.75rem;
  padding-left: 0.12rem;
  position: absolute;
  width: 2.3rem;
}

.movie-row-body {
  padding: 1rem;
}

.movie-row-meta,
.tag-line {
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8rem;
  gap: 0.4rem;
}

.movie-row-meta span,
.tag-line span {
  background: #ecfeff;
  border-radius: 999px;
  color: #0f766e;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
}

.movie-row-body h3 {
  color: #1f2937;
  font-size: 1.1rem;
  font-weight: 900;
  margin-top: 0.6rem;
}

.movie-row-body p {
  color: #64748b;
  display: -webkit-box;
  line-height: 1.65;
  margin-top: 0.45rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-line {
  margin-top: 0.75rem;
}

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

.category-card,
.category-overview-card {
  background: linear-gradient(135deg, #ffffff, #f0fdfa);
  border: 1px solid rgba(20, 184, 166, 0.15);
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  display: block;
  overflow: hidden;
  padding: 1.2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover {
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
  transform: translateY(-0.35rem);
}

.category-card span,
.category-overview-body h2 {
  color: #0f766e;
  font-size: 1.15rem;
  font-weight: 900;
}

.category-card p,
.category-overview-body p {
  color: #64748b;
  line-height: 1.7;
  margin-top: 0.55rem;
}

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

.category-overview-card {
  padding: 0;
}

.category-thumbs {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 160px;
  overflow: hidden;
}

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

.category-overview-body {
  padding: 1.25rem;
}

.category-overview-body span {
  color: #f97316;
  display: inline-flex;
  font-weight: 900;
  margin-top: 0.8rem;
}

.rank-list {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rank-item {
  align-items: center;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.13);
  transform: translateY(-0.2rem);
}

.rank-no {
  align-items: center;
  background: linear-gradient(135deg, #f97316, #e11d48);
  border-radius: 0.8rem;
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  height: 3rem;
  justify-content: center;
}

.rank-title {
  color: #1f2937;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: #64748b;
  font-size: 0.85rem;
}

.section-more {
  margin-top: 1.5rem;
  text-align: center;
}

.section-more a {
  background: linear-gradient(90deg, #0d9488, #06b6d4);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  padding: 0.8rem 1.4rem;
}

.page-main {
  min-height: 72vh;
}

.page-hero,
.detail-hero {
  background: linear-gradient(135deg, #0f766e, #06b6d4 52%, #fb7185);
  color: #ffffff;
  padding: 4.5rem 0;
}

.compact-hero,
.category-hero,
.ranking-hero,
.search-hero {
  position: relative;
}

.page-hero h1,
.detail-content h1 {
  font-size: clamp(2.25rem, 5vw, 4.3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

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

.breadcrumb {
  align-items: center;
  color: rgba(255, 255, 255, 0.84);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

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

.filter-box {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1.25rem;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.filter-search input,
.search-page-form input {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #1f2937;
  outline: none;
  padding: 0.85rem 1rem;
  width: 100%;
}

.filter-search input:focus,
.search-page-form input:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.filter-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-group span {
  color: #475569;
  font-weight: 900;
  margin-right: 0.2rem;
}

.filter-group button {
  background: #f1f5f9;
  border-radius: 999px;
  color: #475569;
  font-weight: 800;
  padding: 0.45rem 0.8rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-group button.is-active,
.filter-group button:hover {
  background: #0d9488;
  color: #ffffff;
}

.ranking-list-page {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ranking-card-link {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: 1.1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  display: grid;
  gap: 1rem;
  grid-template-columns: 4.5rem 150px minmax(0, 1fr);
  overflow: hidden;
  padding: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-card-link:hover {
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
  transform: translateY(-0.2rem);
}

.ranking-number {
  color: #e11d48;
  font-size: 1.4rem;
  font-weight: 900;
  text-align: center;
}

.ranking-card img {
  aspect-ratio: 16 / 10;
  border-radius: 0.85rem;
  object-fit: cover;
  width: 100%;
}

.ranking-card h2 {
  color: #1f2937;
  font-size: 1.2rem;
  font-weight: 900;
}

.ranking-card p {
  color: #64748b;
  line-height: 1.65;
  margin-top: 0.4rem;
}

.search-page-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 720px;
}

.search-page-form button {
  background: #ffffff;
  border-radius: 999px;
  color: #0f766e;
  font-weight: 900;
  padding: 0 1.35rem;
}

.detail-hero {
  padding-bottom: 3rem;
}

.detail-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.watch-player {
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 1.4rem;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  position: relative;
}

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

.player-overlay {
  align-items: center;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.75), rgba(2, 6, 23, 0.22));
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  inset: 0;
  justify-content: center;
  padding: 2rem;
  position: absolute;
  text-align: center;
  z-index: 3;
}

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

.player-button {
  align-items: center;
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
  border-radius: 999px;
  box-shadow: 0 20px 45px rgba(6, 182, 212, 0.35);
  display: inline-flex;
  font-size: 2.1rem;
  height: 5rem;
  justify-content: center;
  padding-left: 0.25rem;
  width: 5rem;
}

.player-overlay strong {
  font-size: 1.35rem;
  font-weight: 900;
}

.detail-content {
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
  color: #1f2937;
  margin-top: 1.5rem;
  padding: 1.5rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.detail-meta span {
  background: #ecfeff;
  border-radius: 999px;
  color: #0f766e;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
}

.detail-one-line {
  color: #475569;
  font-size: 1.1rem;
  line-height: 1.85;
  margin-top: 1.2rem;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.detail-tags span {
  background: #fff7ed;
  border-radius: 999px;
  color: #ea580c;
  font-weight: 800;
  padding: 0.32rem 0.7rem;
}

.detail-content h2 {
  color: #111827;
  font-size: 1.35rem;
  font-weight: 900;
  margin-top: 1.7rem;
}

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

.detail-side {
  align-self: start;
  position: sticky;
  top: 5.5rem;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  object-fit: cover;
  width: 100%;
}

.side-panel {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1.25rem;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.14);
  color: #1f2937;
  margin-top: 1rem;
  padding: 1rem;
}

.side-panel h2 {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.side-rank-list {
  display: grid;
  gap: 0.55rem;
}

.side-rank-link {
  align-items: center;
  background: #f8fafc;
  border-radius: 0.85rem;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 2rem minmax(0, 1fr);
  padding: 0.65rem;
}

.side-rank-link span {
  color: #f97316;
  font-weight: 900;
  text-align: center;
}

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

.related-section {
  background: #f8fafc;
}

.footer {
  margin-top: 0;
}

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

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

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

  .detail-side {
    display: none;
  }
}

@media (max-width: 820px) {
  .hero-carousel {
    height: 640px;
  }

  .hero-content {
    gap: 1.5rem;
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .hero-poster {
    display: none;
  }

  .hero-nav {
    display: none;
  }

  .movie-grid,
  .movie-row-list,
  .rank-list,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-row-link,
  .ranking-card-link {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .ranking-number {
    display: none;
  }

  .search-page-form {
    flex-direction: column;
  }

  .search-page-form button {
    min-height: 3rem;
  }
}

@media (max-width: 520px) {
  .hero-copy h1 {
    font-size: 2.65rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .movie-row-link,
  .ranking-card-link {
    grid-template-columns: 1fr;
  }

  .movie-row-cover,
  .ranking-card img {
    aspect-ratio: 16 / 9;
  }

  .page-hero,
  .detail-hero {
    padding: 3rem 0;
  }

  .filter-group {
    align-items: flex-start;
    flex-direction: column;
  }
}
