:root {
  --page: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #ffffff;
  --green: #059669;
  --green-dark: #047857;
  --teal: #0d9488;
  --cyan: #0891b2;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.78);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--teal), var(--cyan));
  box-shadow: 0 10px 22px rgba(5, 150, 105, 0.28);
}

.brand-text {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  font-weight: 650;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green-dark);
  background: rgba(5, 150, 105, 0.1);
}

.header-search {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 4px;
  border: 1px solid #e2e8f0;
}

.header-search input,
.large-search input,
.filter-box input,
.filter-box select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.header-search input {
  width: 210px;
  padding: 10px 12px;
}

.header-search button,
.large-search button,
.filter-box button {
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-weight: 700;
  padding: 10px 16px;
  transition: 0.22s ease;
}

.header-search button:hover,
.large-search button:hover,
.filter-box button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  background: var(--green-dark);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #0f172a;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.hero-section {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, #059669, #0d9488 48%, #0891b2);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.01);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

.hero-backdrop img {
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(1px) saturate(1.15);
}

.hero-backdrop::after,
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 150, 105, 0.92), rgba(13, 148, 136, 0.78), rgba(8, 145, 178, 0.62));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  align-items: center;
  gap: 48px;
  color: #ffffff;
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #ecfeff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.eyebrow {
  color: var(--green);
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

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

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  background: #ecfdf5;
  color: #047857;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.22s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 14px 28px rgba(4, 120, 87, 0.25);
}

.primary-button.small {
  min-height: 42px;
  margin-top: 18px;
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4.2;
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-poster:hover img,
.movie-card:hover img,
.category-tile:hover img,
.category-overview-card:hover img {
  transform: scale(1.045);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(12px);
}

.hero-controls button {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
}

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

.hero-dot {
  width: 9px !important;
  height: 9px !important;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.42) !important;
}

.hero-dot.active {
  width: 28px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
}

.search-band,
.content-section,
.split-section,
.detail-content,
.watch-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.search-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  align-items: center;
  gap: 28px;
  margin-top: -46px;
  position: relative;
  z-index: 6;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.search-band h2,
.section-heading h2,
.ranking-panel h2,
.story-panel h2,
.info-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.04em;
}

.search-band p,
.section-heading p,
.category-tile p,
.category-overview-card p,
.story-panel p,
.info-panel dd {
  color: var(--muted);
  line-height: 1.75;
}

.large-search {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  background: #f8fafc;
  padding: 8px;
  border-radius: 999px;
}

.large-search input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
}

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

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

.section-more {
  color: var(--green-dark);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  transition: 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.poster-link {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.1;
  background: #e2e8f0;
}

.poster-link img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-meta-line {
  display: flex;
  gap: 8px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-list a:hover,
.ranking-row a:hover,
.footer-links a:hover {
  color: var(--green-dark);
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  font-size: 14px;
}

.movie-card.compact .poster-link {
  aspect-ratio: 16 / 11;
}

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

.category-tile,
.category-overview-card a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 26px;
  min-height: 220px;
  background: #0f172a;
  box-shadow: var(--soft-shadow);
}

.category-tile img,
.category-overview-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transition: transform 0.35s ease;
}

.category-tile::after,
.category-overview-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.84));
}

.category-tile span,
.category-tile p,
.category-overview-card div {
  position: relative;
  z-index: 2;
}

.category-tile {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

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

.category-tile p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  padding: 72px 0;
}

.panel {
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  padding: 28px;
}

.ranking-panel {
  align-self: start;
  position: sticky;
  top: 96px;
}

.rank-list,
.ranking-table {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.rank-list li,
.ranking-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.rank-list span,
.ranking-number {
  color: var(--green-dark);
  font-weight: 900;
}

.rank-list a,
.ranking-row a {
  font-weight: 800;
}

.rank-list em,
.ranking-row em {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 58px;
  overflow: hidden;
  border-radius: 32px;
  color: #ffffff;
  background: linear-gradient(135deg, #059669, #0d9488 52%, #0891b2);
  box-shadow: var(--shadow);
}

.page-hero.slim {
  min-height: 260px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
}

.page-hero .eyebrow {
  color: #ecfeff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

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

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

.category-overview-card a {
  min-height: 270px;
  color: #ffffff;
}

.category-overview-card div {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
}

.category-overview-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.category-overview-card p {
  color: rgba(255, 255, 255, 0.84);
}

.category-overview-card strong {
  display: inline-flex;
  margin-top: 12px;
  color: #a7f3d0;
}

.filter-box {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
  padding: 12px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.filter-box input,
.filter-box select {
  min-height: 44px;
  padding: 0 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.filter-box input {
  flex: 1;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  color: #ffffff;
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: blur(2px) saturate(1.1);
}

.detail-layout {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  gap: 44px;
  padding: 54px 0;
}

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4.2;
}

.detail-cover img {
  height: 100%;
  object-fit: cover;
}

.watch-section {
  margin-top: -70px;
  position: relative;
  z-index: 5;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.64));
  font-size: 18px;
  font-weight: 900;
}

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

.play-symbol {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.92);
  box-shadow: 0 18px 48px rgba(5, 150, 105, 0.42);
  font-size: 34px;
  text-indent: 4px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding-top: 44px;
}

.story-panel,
.info-panel {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.detail-content .story-panel + .story-panel {
  margin-top: 24px;
}

.info-panel {
  align-self: start;
  position: sticky;
  top: 96px;
}

.info-panel dl {
  margin: 18px 0 0;
}

.info-panel div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.info-panel dt {
  color: #334155;
  font-weight: 900;
}

.info-panel dd {
  margin: 6px 0 0;
}

.related-section {
  padding-bottom: 72px;
}

.search-page-form {
  margin-top: 28px;
  max-width: 720px;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.search-page-form input {
  color: #ffffff;
}

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

.search-results {
  min-height: 180px;
}

.search-state {
  padding: 32px;
  border-radius: 24px;
  color: var(--muted);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.site-footer {
  margin-top: 72px;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner strong {
  color: #ffffff;
  font-size: 20px;
}

.footer-inner p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #94a3b8;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-weight: 800;
}

@media (max-width: 1024px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .mobile-nav.open {
    display: grid;
    gap: 8px;
  }

  .hero-content,
  .detail-layout,
  .search-band,
  .split-section,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-cover {
    max-width: 320px;
  }

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

  .ranking-panel,
  .info-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    width: min(100% - 22px, 1180px);
    min-height: 64px;
  }

  .brand-text {
    font-size: 16px;
  }

  .hero-section,
  .hero-content {
    min-height: 660px;
  }

  .hero-content {
    gap: 26px;
    align-content: center;
    padding: 46px 0 96px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-info p {
    font-size: 16px;
  }

  .search-band,
  .page-hero,
  .panel,
  .story-panel,
  .info-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .large-search,
  .filter-box,
  .footer-inner,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .detail-layout {
    grid-template-columns: 1fr;
    padding: 34px 0 110px;
  }

  .watch-section {
    margin-top: -86px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .featured-grid,
  .compact-grid,
  .category-movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
