body {
  color: #1f2937;
  background: #f9fafb;
}
.site-header {
  backdrop-filter: blur(14px);
}
.site-logo .logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  color: #fbbf24;
  transition: transform 0.25s ease;
}
.site-logo:hover .logo-mark {
  transform: rotate(8deg) scale(1.03);
}
.search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-52%);
  color: #64748b;
  font-weight: 700;
}
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 0.28rem;
}
.menu-toggle span {
  width: 1.45rem;
  height: 0.14rem;
  background: #ffffff;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(0.42rem) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-0.42rem) rotate(-45deg);
}
.mobile-panel {
  display: none;
  padding-bottom: 1rem;
}
.mobile-panel.is-open {
  display: block;
}
.mobile-nav {
  display: grid;
  gap: 0.6rem;
}
.mobile-nav a {
  display: block;
  padding: 0.45rem 0;
  color: #ffffff;
  font-weight: 600;
}
.hero-shell {
  position: relative;
  min-height: 500px;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(255,255,255,0.25), transparent 28%), rgba(0,0,0,0.28);
}
.hero-slider {
  position: relative;
  max-width: 80rem;
  min-height: 500px;
  margin: 0 auto;
  padding: 0 1rem;
}
.hero-slide {
  position: absolute;
  inset: 0 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: 3rem;
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.hero-copy {
  color: #ffffff;
  max-width: 46rem;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  color: #7c2d12;
  background: rgba(255,255,255,0.88);
  font-weight: 800;
  letter-spacing: 0.05em;
}
.hero-copy h1,
.page-hero h1,
.detail-title-block h1 {
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 1.05;
  font-weight: 900;
  margin-bottom: 0.9rem;
  text-shadow: 0 18px 48px rgba(0,0,0,0.25);
}
.hero-copy h2 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.hero-copy p,
.page-hero p,
.detail-title-block p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.5rem;
}
.hero-tags,
.tag-cloud,
.detail-genre-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.hero-tags span,
.tag-cloud span,
.detail-genre-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.34rem 0.74rem;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.26);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-primary,
.hero-secondary,
.more-link,
.filter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.hero-primary {
  padding: 0.85rem 1.6rem;
  color: #e11d48;
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(0,0,0,0.18);
}
.hero-secondary {
  padding: 0.85rem 1.3rem;
  color: #ffffff;
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.26);
}
.hero-primary:hover,
.hero-secondary:hover,
.more-link:hover,
.filter-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(15,23,42,0.18);
}
.hero-poster,
.rank-hero-card,
.detail-poster {
  display: block;
  min-height: 320px;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(15,23,42,0.32);
}
.hero-dots {
  position: absolute;
  left: 1rem;
  bottom: 2rem;
  display: flex;
  gap: 0.55rem;
  z-index: 5;
}
.hero-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  transition: width 0.2s ease, background 0.2s ease;
}
.hero-dot.is-active {
  width: 2rem;
  background: #ffffff;
}
.home-quick-links {
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}
.quick-link-panel {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 18px 45px rgba(15,23,42,0.12);
}
.quick-link-panel a,
.related-categories a,
.side-links a {
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: #0f766e;
  background: #ecfeff;
  font-weight: 800;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.section-icon {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ec4899);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(236,72,153,0.25);
}
.section-title h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.15;
  color: #1f2937;
  font-weight: 900;
}
.section-title p {
  color: #64748b;
  margin-top: 0.25rem;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
}
.featured-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.catalog-grid {
  align-items: stretch;
}
.related-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 10px 24px 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 22px 48px rgba(15,23,42,0.16);
}
.cover-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #ccfbf1, #ecfeff 55%, #fef3c7);
}
.cover-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  z-index: 2;
}
.movie-card:hover .cover-frame img,
.rank-row:hover .cover-frame img,
.hero-poster:hover img {
  transform: scale(1.08);
}
.cover-name {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  color: #0f766e;
  font-size: 1.1rem;
  font-weight: 900;
  z-index: 1;
}
.cover-frame img ~ .cover-name {
  opacity: 0;
}
.region-badge,
.rank-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
}
.region-badge {
  top: 0.6rem;
  right: 0.6rem;
  background: #f97316;
}
.rank-badge {
  top: 0.6rem;
  left: 0.6rem;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
}
.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  transform: translate(-50%, -50%) scale(0.7);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.movie-card:hover .play-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.movie-card-body {
  padding: 1rem;
}
.movie-card-body h3 {
  color: #1f2937;
  font-weight: 900;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.movie-card-body p {
  min-height: 2.8rem;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.movie-meta span {
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  color: #0f766e;
  background: #f0fdfa;
  font-size: 0.78rem;
  font-weight: 800;
}
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 2rem;
}
.rank-list {
  display: grid;
  gap: 0.9rem;
}
.rank-row {
  display: grid;
  grid-template-columns: 3.2rem 9rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15,23,42,0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rank-row:hover {
  transform: translateX(4px);
  box-shadow: 0 18px 38px rgba(15,23,42,0.12);
}
.rank-num {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  color: #ffffff;
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
  font-weight: 900;
}
.rank-thumb {
  border-radius: 0.75rem;
}
.rank-info h3 {
  color: #1f2937;
  font-weight: 900;
  margin-bottom: 0.3rem;
}
.rank-info p {
  color: #64748b;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.compact-rank .rank-row:nth-child(n+6) {
  display: none;
}
.category-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}
.category-tile {
  display: flex;
  min-height: 6.8rem;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 1rem;
  padding: 1.1rem;
  background: linear-gradient(135deg, #ffffff, #ecfeff);
  box-shadow: 0 10px 24px rgba(15,23,42,0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(15,23,42,0.13);
}
.category-tile span {
  color: #0f766e;
  font-size: 1.1rem;
  font-weight: 900;
}
.category-tile em {
  color: #64748b;
  font-style: normal;
  font-weight: 700;
}
.category-section + .category-section {
  margin-top: 3rem;
}
.more-link,
.filter-link {
  margin-top: 1.25rem;
  padding: 0.65rem 1rem;
  color: #ffffff;
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
}
.page-hero {
  color: #ffffff;
  padding: 4.8rem 0;
  overflow: hidden;
}
.page-hero p {
  max-width: 48rem;
}
.related-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}
.filter-search-wrap {
  flex: 1 1 260px;
}
.filter-input,
.filter-select,
.search-hero-form input {
  width: 100%;
  min-height: 2.8rem;
  border-radius: 999px;
  padding: 0 1rem 0 2.4rem;
  color: #1f2937;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px #e2e8f0;
  outline: none;
}
.filter-select {
  width: auto;
  padding-left: 1rem;
  padding-right: 2rem;
}
.empty-state {
  display: none;
  margin: 2rem 0;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  color: #64748b;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}
.empty-state.is-visible {
  display: block;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  color: #0f766e;
  background: #ffffff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15,23,42,0.08);
}
.pagination a.is-current {
  color: #ffffff;
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
}
.rank-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 2rem;
  align-items: center;
}
.detail-hero {
  color: #ffffff;
  padding: 3rem 0;
}
.detail-hero-inner {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
.detail-poster {
  min-height: 410px;
  aspect-ratio: 3 / 4;
}
.detail-title-block h1 {
  margin-bottom: 1rem;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}
.detail-main,
.detail-side {
  display: grid;
  gap: 1.3rem;
}
.player-card,
.content-card,
.side-card {
  border-radius: 1rem;
  padding: 1.25rem;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}
.player-card h2,
.content-card h2,
.side-card h2 {
  color: #1f2937;
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 1rem;
}
.content-card p {
  color: #374151;
  line-height: 1.9;
  font-size: 1.02rem;
}
.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #000000;
  box-shadow: 0 18px 45px rgba(15,23,42,0.28);
}
.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}
.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.75rem;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(20,184,166,0.28), rgba(0,0,0,0.55));
  font-size: 1rem;
  font-weight: 900;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.player-play {
  display: grid;
  place-items: center;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
  box-shadow: 0 18px 36px rgba(6,182,212,0.32);
  font-size: 1.8rem;
}
.side-card dl {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
}
.side-card dt {
  color: #64748b;
  font-weight: 800;
}
.side-card dd {
  color: #1f2937;
  font-weight: 700;
  min-width: 0;
}
.tag-cloud span {
  color: #0f766e;
  background: #ecfeff;
  box-shadow: none;
}
.side-links {
  display: grid;
  gap: 0.65rem;
}
.search-hero-form {
  display: flex;
  gap: 0.8rem;
  max-width: 46rem;
}
.search-hero-form input {
  min-height: 3.2rem;
  padding-left: 1.2rem;
  background: rgba(255,255,255,0.95);
}
.search-hero-form button {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0 1.4rem;
  color: #0f766e;
  background: #ffffff;
  font-weight: 900;
}
.search-status {
  margin-bottom: 1.2rem;
  color: #0f766e;
  font-size: 1.2rem;
  font-weight: 900;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 1024px) {
  .hero-slide,
  .rank-hero-inner,
  .detail-hero-inner,
  .detail-grid,
  .home-split {
    grid-template-columns: 1fr;
  }
  .hero-poster,
  .rank-hero-card {
    display: none;
  }
  .detail-poster {
    max-width: 320px;
    min-height: 420px;
  }
  .detail-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .hero-shell,
  .hero-slider {
    min-height: 560px;
  }
  .hero-slide {
    align-content: center;
    gap: 1rem;
  }
  .hero-copy h1,
  .page-hero h1,
  .detail-title-block h1 {
    font-size: 2.4rem;
  }
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
  .movie-card-body {
    padding: 0.85rem;
  }
  .movie-card-body p {
    min-height: auto;
  }
  .rank-row {
    grid-template-columns: 2.8rem 6.5rem minmax(0, 1fr);
    gap: 0.7rem;
  }
  .rank-info p {
    -webkit-line-clamp: 1;
  }
  .detail-side,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .filter-panel,
  .search-hero-form {
    align-items: stretch;
    flex-direction: column;
  }
  .filter-select {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }
  .rank-row {
    grid-template-columns: 2.4rem 5.6rem minmax(0, 1fr);
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
