body.site-body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #eef6f8 48%, #f8fafc 100%);
  color: #1f2937;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0d9488, #0891b2, #2563eb);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.header-row,
.header-search,
.mobile-search,
.brand-link,
.desktop-nav,
.hero-actions,
.detail-meta,
.tag-row,
.footer-links {
  display: flex;
  align-items: center;
}

.header-row {
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  gap: 0.65rem;
  font-size: 1.55rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.desktop-nav {
  gap: 1.1rem;
  font-weight: 650;
}

.nav-link,
.mobile-nav-link {
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.mobile-nav-link:hover {
  color: #ccfbf1;
}

.header-search,
.mobile-search {
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.35rem 0.45rem 0.35rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.header-search input,
.mobile-search input {
  width: 12rem;
  color: #ffffff;
  background: transparent;
  outline: none;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.mobile-search button {
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  color: #0f766e;
  background: #ffffff;
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.5rem;
}

.mobile-nav {
  display: none;
  padding: 1rem 0 0.35rem;
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.8rem;
}

.mobile-nav-link {
  padding: 0.65rem 0.8rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.11);
}

.hero-slider {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(90deg, #14b8a6, #06b6d4, #2563eb);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.1);
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 118, 110, 0.76), rgba(37, 99, 235, 0.44));
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: 3rem;
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 800px;
  margin-bottom: 1.1rem;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

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

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.tag-pill,
.category-badge,
.cover-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.tag-pill {
  padding: 0.35rem 0.7rem;
  color: #0f766e;
  background: #ccfbf1;
}

.hero-tags .tag-pill {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.9rem;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.45rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: #0f766e;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
}

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

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.hero-poster {
  display: block;
  overflow: hidden;
  border-radius: 1.6rem;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.48);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  right: 2rem;
  bottom: 4.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.hero-dots {
  display: flex;
  gap: 0.45rem;
}

.hero-dot {
  width: 0.7rem !important;
  height: 0.7rem !important;
  padding: 0;
  background: rgba(255, 255, 255, 0.45) !important;
}

.hero-dot.is-active {
  width: 1.6rem !important;
  background: #ffffff !important;
}

.hero-category-bar {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  width: min(1100px, calc(100% - 2rem));
  transform: translateX(-50%);
}

.hero-category-bar a {
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(8px);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 900;
  color: #1f2937;
}

.section-more {
  color: #0f766e;
  font-weight: 800;
}

.section-intro {
  max-width: 820px;
  margin: -0.45rem 0 1.4rem;
  color: #64748b;
  line-height: 1.8;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
}

.movie-cover {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.movie-card-large .movie-cover {
  height: 270px;
}

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

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

.cover-badge {
  position: absolute;
  padding: 0.25rem 0.55rem;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
}

.year-badge {
  top: 0.65rem;
  right: 0.65rem;
}

.type-badge {
  left: 0.65rem;
  bottom: 0.65rem;
}

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

.category-badge {
  margin-bottom: 0.55rem;
  padding: 0.3rem 0.65rem;
  color: #0f766e;
  background: #ccfbf1;
}

.movie-card h3 {
  min-height: 3.1rem;
  margin-bottom: 0.45rem;
  color: #1f2937;
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 850;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card p {
  min-height: 2.6rem;
  margin-bottom: 0.75rem;
  color: #64748b;
  line-height: 1.6;
  font-size: 0.9rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.82rem;
}

.soft-panel {
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.rank-panel,
.cta-panel {
  border-radius: 1.6rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #ffffff;
  background: linear-gradient(90deg, #0f766e, #2563eb);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.rank-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
}

.rank-panel h2,
.cta-panel h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
}

.rank-panel p,
.cta-panel p {
  margin-bottom: 1.35rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

.rank-panel ol {
  display: grid;
  gap: 0.7rem;
}

.rank-panel li a {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.13);
}

.rank-panel li strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.rank-panel li span {
  font-weight: 800;
}

.rank-panel li em {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.76);
}

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

.cta-panel {
  text-align: center;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(90deg, #0f766e, #2563eb);
}

.page-hero {
  padding: 4.5rem 0;
}

.page-hero h1,
.detail-hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
}

.page-hero p,
.detail-hero p {
  max-width: 850px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #64748b;
}

.breadcrumb.light,
.page-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb a:hover {
  color: #14b8a6;
}

.breadcrumb.light a:hover,
.page-hero .breadcrumb a:hover {
  color: #ffffff;
}

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

.category-card {
  display: block;
  border-radius: 1.35rem;
  padding: 1.1rem;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.category-posters {
  display: grid;
  grid-template-columns: 1fr 0.82fr 0.64fr;
  gap: 0.55rem;
  height: 170px;
  margin-bottom: 1rem;
}

.category-posters img {
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  object-fit: cover;
}

.category-card h2 {
  margin-bottom: 0.45rem;
  font-size: 1.35rem;
  font-weight: 900;
  color: #1f2937;
}

.category-card p {
  min-height: 3.2rem;
  color: #64748b;
  line-height: 1.7;
}

.category-card span {
  display: inline-block;
  margin-top: 0.9rem;
  color: #0f766e;
  font-weight: 800;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
  border-radius: 1.1rem;
  padding: 1rem;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.filter-panel strong {
  margin-right: auto;
  color: #0f766e;
  font-size: 1.05rem;
}

.filter-panel input,
.filter-panel select {
  min-height: 2.65rem;
  border: 1px solid #dbe7ea;
  border-radius: 999px;
  padding: 0 1rem;
  outline: none;
  background: #f8fafc;
}

.filter-panel input {
  min-width: min(340px, 100%);
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.empty-state {
  margin: 2rem 0;
  border-radius: 1rem;
  padding: 1.2rem;
  text-align: center;
  color: #64748b;
  background: #ffffff;
}

.ranking-list {
  display: grid;
  gap: 0.8rem;
}

.ranking-row a {
  display: grid;
  grid-template-columns: 3.2rem 5.6rem minmax(180px, 0.7fr) minmax(240px, 1fr);
  align-items: center;
  gap: 1rem;
  border-radius: 1rem;
  padding: 0.75rem;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ranking-row strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  font-weight: 900;
}

.ranking-row img {
  width: 5.6rem;
  height: 4.2rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

.ranking-row b {
  display: block;
  margin-bottom: 0.25rem;
  color: #1f2937;
  font-size: 1.05rem;
}

.ranking-row em,
.ranking-row p {
  color: #64748b;
}

.ranking-row p {
  line-height: 1.6;
}

.detail-hero {
  min-height: 420px;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.detail-meta {
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.detail-meta span {
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  background: #020617;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.28);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.72));
  font-weight: 900;
  font-size: 1.1rem;
}

.player-cover.is-hidden {
  display: none;
}

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  font-size: 2rem;
}

.detail-card,
.side-panel {
  margin-top: 1.3rem;
  border-radius: 1.2rem;
  padding: 1.35rem;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.detail-card h2,
.side-panel h2 {
  margin: 0 0 0.85rem;
  color: #1f2937;
  font-size: 1.35rem;
  font-weight: 900;
}

.detail-card p {
  margin-bottom: 1rem;
  color: #475569;
  line-height: 1.9;
}

.review-box {
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(90deg, #f0fdfa, #ecfeff);
}

.related-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.related-inline a {
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  color: #0f766e;
  background: #ccfbf1;
  font-weight: 750;
}

.detail-sidebar {
  min-width: 0;
}

.side-panel {
  position: sticky;
  top: 6rem;
}

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

.side-card {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  border-radius: 0.9rem;
  padding: 0.6rem;
  background: #f8fafc;
}

.side-card img {
  width: 5rem;
  height: 4rem;
  border-radius: 0.7rem;
  object-fit: cover;
}

.side-card strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #1f2937;
  font-weight: 850;
  line-height: 1.35;
}

.side-card em {
  color: #64748b;
  font-size: 0.85rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 1.3rem;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a, #1f2937, #0f172a);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 2rem;
}

.site-footer h2 {
  margin-bottom: 0.8rem;
  color: #5eead4;
  font-size: 1.15rem;
  font-weight: 900;
}

.site-footer p {
  color: #cbd5e1;
  line-height: 1.8;
}

.footer-links {
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #5eead4;
}

.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.2rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

  .mobile-search {
    display: flex;
  }

  .hero-inner,
  .rank-panel,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 1.4rem;
    padding-top: 2rem;
    padding-bottom: 6rem;
  }

  .hero-poster {
    max-width: 340px;
    transform: none;
  }

  .hero-poster img {
    height: 300px;
  }

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

  .ranking-row a {
    grid-template-columns: 2.8rem 4.8rem minmax(0, 1fr);
  }

  .ranking-row p {
    grid-column: 1 / -1;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .brand-link {
    font-size: 1.18rem;
  }

  .brand-mark {
    width: 2.2rem;
    height: 2.2rem;
  }

  .hero-slider,
  .hero-inner {
    min-height: 720px;
  }

  .hero-controls {
    right: 1rem;
    bottom: 5.2rem;
  }

  .hero-category-bar {
    bottom: 0.8rem;
  }

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

  .movie-cover,
  .movie-card-large .movie-cover {
    height: 250px;
  }

  .filter-panel {
    display: grid;
  }

  .filter-panel strong {
    margin-right: 0;
  }

  .filter-panel input,
  .filter-panel select {
    width: 100%;
  }

  .ranking-row a {
    grid-template-columns: 2.5rem 4.4rem minmax(0, 1fr);
    gap: 0.7rem;
  }
}
