* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #111827, #1f2937, #111827);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.02em;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.32);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: #d1d5db;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fb923c;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  padding: 8px 16px 18px;
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-link {
  display: block;
  padding: 12px 0;
  color: #e5e7eb;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: #030712;
}

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

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.02);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(17, 24, 39, 0.66), rgba(3, 7, 18, 0.28)), linear-gradient(0deg, rgba(3, 7, 18, 0.92), transparent 46%, rgba(3, 7, 18, 0.4));
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: 660px;
}

.hero-copy {
  width: min(720px, 100%);
  color: #ffffff;
  animation: fade-in-up 0.65s ease both;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: #fb923c;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-copy p {
  width: min(640px, 100%);
  margin: 0 0 24px;
  color: #f3f4f6;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.pill-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span,
.pill-link,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  color: #fff7ed;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.35);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.btn-primary,
.btn-ghost,
.btn-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.34);
}

.btn-primary:hover,
.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover,
.rank-row:hover {
  transform: translateY(-4px);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-link,
.section-more {
  color: #fb923c;
  padding-inline: 0;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}

.hero-prev,
.hero-next {
  width: 44px;
  height: 44px;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 9px;
}

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

.hero-dot.active {
  width: 28px;
  background: #fb923c;
}

.intro-band {
  padding: 36px 0;
  background: linear-gradient(90deg, #111827, #1f2937);
  color: #ffffff;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.intro-grid h2,
.rank-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.035em;
}

.intro-grid p,
.rank-copy p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.8;
}

.quick-search {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.quick-search label,
.search-panel label,
.filter-bar label {
  display: grid;
  gap: 9px;
  font-weight: 800;
}

.quick-search div,
.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 10px;
}

.quick-search input,
.quick-search button,
.search-panel input,
.search-panel select,
.filter-bar input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 12px;
  padding: 0 14px;
  outline: 0;
}

.quick-search button {
  color: #ffffff;
  background: #f97316;
  border-color: #f97316;
  font-weight: 900;
}

.content-section {
  padding: 72px 0;
}

.category-section,
.search-section,
.detail-content {
  background: #ffffff;
}

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

.section-heading h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.035em;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #f97316, #111827);
}

.poster-wrap img,
.detail-poster img,
.category-tile img,
.category-preview-strip img,
.rank-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-wrap::after {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.poster-badge,
.poster-year {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  left: 10px;
  top: 10px;
  background: rgba(249, 115, 22, 0.95);
}

.poster-year {
  right: 10px;
  bottom: 10px;
  background: rgba(17, 24, 39, 0.82);
}

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

.movie-card-body h3 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-body p {
  margin: 0;
  min-height: 42px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
}

.tag-row span {
  min-height: 24px;
  padding: 4px 8px;
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 24px;
  color: #ffffff;
  background: #111827;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
  transition: transform 0.25s ease;
}

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.7;
}

.category-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.18));
}

.category-tile span,
.category-tile em {
  position: relative;
  z-index: 2;
  display: block;
  padding-inline: 22px;
}

.category-tile span {
  padding-top: 116px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile em {
  padding-top: 8px;
  padding-bottom: 20px;
  color: #e5e7eb;
  font-style: normal;
  line-height: 1.55;
}

.rank-section {
  padding: 76px 0;
  color: #ffffff;
  background: radial-gradient(circle at 25% 20%, rgba(249, 115, 22, 0.28), transparent 35%), linear-gradient(135deg, #111827, #030712);
}

.rank-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: center;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px 58px 1fr;
  gap: 13px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  background: rgba(255, 255, 255, 0.16);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
}

.rank-row img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
}

.rank-text strong,
.rank-text em {
  display: block;
}

.rank-text strong {
  color: #ffffff;
  font-size: 16px;
}

.rank-text em {
  margin-top: 5px;
  color: #d1d5db;
  font-size: 13px;
  font-style: normal;
}

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

.page-hero,
.detail-hero {
  color: #ffffff;
  background: radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.22), transparent 32%), linear-gradient(135deg, #111827, #030712);
}

.compact-hero,
.category-hero {
  padding: 72px 0;
}

.page-hero h1,
.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.page-hero p,
.detail-one-line {
  max-width: 780px;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #e5e7eb;
  font-size: 14px;
}

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

.pill-row {
  margin-top: 24px;
}

.pill-link {
  color: #fff7ed;
}

.overview-list,
.ranking-grid {
  display: grid;
  gap: 24px;
  padding: 50px 0 76px;
}

.category-overview-card,
.ranking-block,
.story-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease;
}

.category-overview-head,
.ranking-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
}

.category-overview-head h2,
.ranking-block-head h2,
.story-card h2,
.player-section h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 26px;
}

.category-overview-head p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.category-preview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px 24px;
}

.category-preview-strip a {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
}

.category-preview-strip a::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent 55%);
}

.category-preview-strip span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  color: #ffffff;
  font-weight: 900;
}

.filter-bar,
.search-panel {
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.search-panel {
  grid-template-columns: 1fr 260px;
}

.detail-hero {
  padding: 54px 0 70px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #f97316, #111827);
}

.detail-meta {
  margin: 22px 0;
}

.detail-tags {
  margin-bottom: 28px;
}

.player-section {
  padding: 54px 0;
  background: #030712;
}

.player-section h2 {
  color: #ffffff;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.3), rgba(3, 7, 18, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.36);
  font-size: 32px;
}

.player-overlay strong {
  font-size: 22px;
}

.prose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.story-card {
  padding: 26px;
}

.story-card p {
  margin: 0;
  color: #334155;
  line-height: 1.9;
}

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

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #030712);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  padding: 48px 0;
}

.footer-grid p {
  max-width: 430px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

.footer-bottom {
  padding: 18px;
  color: #9ca3af;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .menu-toggle {
    display: inline-block;
  }

  .intro-grid,
  .rank-layout,
  .detail-layout,
  .prose-grid,
  .footer-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }

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

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

  .detail-poster {
    width: min(280px, 100%);
  }
}

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

  .hero-carousel,
  .hero-content {
    min-height: 600px;
  }

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

  .hero-actions,
  .section-heading,
  .category-overview-head,
  .ranking-block-head {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-search div {
    grid-template-columns: 1fr;
  }

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

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

  .movie-card-body {
    padding: 12px;
  }

  .rank-row {
    grid-template-columns: 36px 52px 1fr;
  }

  .rank-row img {
    width: 52px;
    height: 70px;
  }

  .compact-hero,
  .category-hero,
  .content-section {
    padding: 46px 0;
  }
}
