:root {
  --primary-50: #e6f1ff;
  --primary-100: #b3d9ff;
  --primary-600: #0059c0;
  --primary-700: #00438d;
  --accent-50: #fff3e6;
  --accent-500: #ff6b00;
  --neutral-50: #f8f9fa;
  --neutral-100: #e9ecef;
  --neutral-200: #dee2e6;
  --neutral-300: #ced4da;
  --neutral-500: #6c757d;
  --neutral-700: #343a40;
  --neutral-800: #212529;
  --neutral-900: #0d1117;
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, .07), 0 10px 20px -2px rgba(0, 0, 0, .04);
  --shadow-soft-lg: 0 10px 40px -10px rgba(0, 0, 0, .1), 0 20px 25px -5px rgba(0, 0, 0, .04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--neutral-900);
  background: var(--neutral-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
}

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 18px rgba(13, 17, 23, .08);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-600);
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  border-radius: 9px;
  font-size: 13px;
  box-shadow: var(--shadow-soft);
}

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

.nav-link {
  color: var(--neutral-700);
  font-weight: 650;
  transition: color .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.filter-row input,
.filter-row select {
  border: 1px solid var(--neutral-300);
  border-radius: 12px;
  background: #fff;
  color: var(--neutral-900);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.top-search input {
  width: 220px;
  padding: 9px 12px;
}

.top-search input:focus,
.filter-row input:focus,
.filter-row select:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(0, 89, 192, .15);
}

.top-search button,
.primary-btn {
  border: 0;
  border-radius: 12px;
  background: var(--primary-600);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.top-search button {
  padding: 9px 14px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  box-shadow: 0 12px 24px rgba(0, 89, 192, .22);
}

.top-search button:hover,
.primary-btn:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 12px;
  color: #fff;
  font-weight: 750;
  background: rgba(0, 0, 0, .22);
  backdrop-filter: blur(10px);
  transition: transform .2s ease, background .2s ease;
}

.ghost-btn:hover {
  background: rgba(0, 0, 0, .38);
  transform: translateY(-1px);
}

.ghost-btn.light {
  color: var(--primary-600);
  border-color: rgba(0, 89, 192, .18);
  background: rgba(255, 255, 255, .78);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  color: var(--primary-600);
  background: #fff;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--neutral-200);
  background: #fff;
}

.mobile-links {
  display: grid;
  gap: 12px;
  padding: 14px 0 18px;
}

.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mobile-cats a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--primary-600);
  background: var(--primary-50);
  font-size: 14px;
}

.hero-slider {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--neutral-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .88), rgba(0, 0, 0, .68), rgba(0, 0, 0, .06));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-copy {
  width: min(100%, 680px);
  color: #fff;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 16px;
  margin-bottom: 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent-500);
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 14px;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.hero-copy h1 {
  font-size: clamp(30px, 5vw, 56px);
}

.hero-copy h2 {
  font-size: clamp(28px, 4vw, 48px);
}

.hero-copy p {
  width: min(100%, 660px);
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(16px, 2vw, 19px);
}

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

.hero-actions.slim {
  margin-top: 26px;
}

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

.hero-tags {
  margin-top: 18px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.hero-tags span {
  color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px);
}

.tag-row span {
  color: var(--primary-600);
  background: var(--primary-50);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .46);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, .7);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.hero-dot.active {
  width: 34px;
  background: #fff;
}

.page-stack {
  display: grid;
  gap: 56px;
  padding: 46px 0 64px;
}

.section-head,
.section-line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2,
.section-title-small h2 {
  margin: 0;
  color: var(--neutral-900);
  font-size: 28px;
  line-height: 1.2;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--neutral-500);
}

.section-head:before,
.section-title-small span {
  content: "";
  display: block;
  flex: none;
  width: 5px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-500);
}

.section-head.primary:before,
.section-title-small.primary span {
  background: var(--primary-600);
}

.section-head {
  justify-content: flex-start;
}

.section-title-small {
  display: flex;
  align-items: center;
  gap: 12px;
}

.more-link {
  color: var(--primary-600);
  font-weight: 750;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(222, 226, 230, .7);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  min-height: 245px;
  overflow: hidden;
  background-color: var(--neutral-800);
  background-size: cover;
  background-position: center;
}

.card-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .46));
}

.card-badge,
.card-year {
  position: absolute;
  z-index: 2;
  top: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  left: 14px;
  background: var(--accent-500);
}

.card-year {
  right: 14px;
  background: rgba(0, 0, 0, .56);
  backdrop-filter: blur(10px);
}

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

.card-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--neutral-900);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color .2s ease;
}

.card-title:hover {
  color: var(--primary-600);
}

.card-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--neutral-500);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--neutral-500);
  font-size: 13px;
}

.list-stack {
  display: grid;
  gap: 16px;
}

.list-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
}

.list-card .card-cover {
  min-height: 190px;
}

.list-card .card-body {
  align-content: center;
  padding: 22px;
}

.soft-panel,
.white-panel,
.filter-panel,
.article-panel,
.player-section,
.next-panel {
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.soft-panel {
  padding: 32px;
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

.white-panel,
.filter-panel,
.article-panel,
.player-section,
.next-panel {
  padding: 30px;
  background: #fff;
}

.category-grid,
.category-large-grid {
  display: grid;
  gap: 22px;
}

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

.category-tile {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 22px;
  border-radius: 24px;
  color: var(--neutral-900);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-lg);
}

.category-tile span,
.category-large span,
.page-hero span {
  color: var(--accent-500);
  font-weight: 850;
}

.category-tile strong {
  font-size: 19px;
}

.category-tile em,
.category-large em,
.category-large p {
  color: var(--neutral-500);
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
}

.page-hero {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
}

.page-hero .container {
  padding: 58px 0;
}

.page-hero.compact .container {
  padding: 44px 0;
}

.page-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 17px;
}

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

.category-large {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  padding: 30px;
  border-radius: 28px;
  color: #fff;
  background-color: var(--neutral-900);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft-lg);
}

.category-large:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .28));
}

.category-large > * {
  position: relative;
  z-index: 1;
}

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

.category-large p {
  max-width: 540px;
  color: rgba(255, 255, 255, .78);
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  margin-bottom: 22px;
}

.filter-row input,
.filter-row select {
  width: 100%;
  padding: 13px 14px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 68px 110px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-500), #ff9a3d);
  font-size: 18px;
  font-weight: 900;
}

.rank-cover {
  display: block;
  height: 130px;
  border-radius: 16px;
  background-color: var(--neutral-800);
  background-size: cover;
  background-position: center;
}

.rank-info a {
  color: var(--neutral-900);
  font-size: 19px;
  font-weight: 850;
}

.rank-info p {
  margin: 8px 0 10px;
  color: var(--neutral-500);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--neutral-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: .36;
  background-size: cover;
  background-position: center;
  filter: blur(4px) scale(1.04);
}

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .64), rgba(0, 0, 0, .28));
}

.detail-head {
  position: relative;
  z-index: 1;
  padding: 34px 0 52px;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  min-height: 380px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 28px;
  background-color: var(--neutral-800);
  background-size: cover;
  background-position: center;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .32);
}

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

.lead {
  max-width: 760px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .8);
  font-size: 18px;
  line-height: 1.75;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
}

.info-list li {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}

.info-list span {
  display: block;
  color: rgba(255, 255, 255, .56);
  font-size: 12px;
}

.info-list strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 15px;
}

.detail-tags span {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.detail-main {
  gap: 30px;
}

.video-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow-soft-lg);
}

.video-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(0, 0, 0, .1), rgba(0, 0, 0, .45));
  cursor: pointer;
  transition: opacity .25s ease;
}

.play-mask span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(0, 89, 192, .92);
  box-shadow: 0 18px 42px rgba(0, 89, 192, .3);
  font-size: 34px;
  transform: translateX(3px);
}

.video-box.is-playing .play-mask {
  opacity: 0;
  pointer-events: none;
}

.article-panel h2 {
  margin: 0 0 12px;
  color: var(--neutral-900);
  font-size: 24px;
}

.article-panel p {
  margin: 0 0 24px;
  color: var(--neutral-700);
  font-size: 17px;
  line-height: 1.9;
}

.article-panel p:last-child {
  margin-bottom: 0;
}

.next-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.next-panel a {
  padding: 16px;
  border-radius: 16px;
  color: var(--primary-600);
  background: var(--primary-50);
  font-weight: 750;
}

.featured-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 330px;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background-color: var(--neutral-900);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft-lg);
}

.featured-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .78));
}

.featured-card > * {
  position: relative;
  z-index: 1;
}

.featured-card span {
  justify-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-500);
  font-size: 12px;
  font-weight: 800;
}

.featured-card strong {
  margin: 12px 0 6px;
  font-size: 24px;
  line-height: 1.28;
}

.featured-card em {
  color: rgba(255, 255, 255, .72);
  font-style: normal;
}

.site-footer {
  color: #fff;
  background: var(--neutral-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding: 46px 0 34px;
}

.footer-grid p {
  max-width: 520px;
  color: rgba(255, 255, 255, .62);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, .62);
  font-size: 14px;
}

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

.footer-bottom {
  padding: 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  color: rgba(255, 255, 255, .46);
  text-align: center;
  font-size: 14px;
}

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

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

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

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

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

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .mobile-panel.open {
    display: block;
  }

  .hero-slider {
    height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid.three,
  .movie-grid.four,
  .category-grid,
  .category-large-grid,
  .footer-grid,
  .detail-layout,
  .next-panel {
    grid-template-columns: 1fr;
  }

  .list-card {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .detail-poster {
    min-height: 430px;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }
}

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

  .header-inner {
    height: 58px;
  }

  .logo {
    font-size: 18px;
  }

  .hero-slider {
    height: 610px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    letter-spacing: -.02em;
  }

  .hero-actions,
  .section-head,
  .section-line {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .soft-panel,
  .white-panel,
  .filter-panel,
  .article-panel,
  .player-section,
  .next-panel {
    padding: 20px;
    border-radius: 22px;
  }

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

  .list-card .card-cover,
  .card-cover {
    min-height: 260px;
  }

  .rank-row {
    grid-template-columns: 48px 84px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-cover {
    height: 100px;
  }

  .rank-num {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .detail-head {
    padding-top: 24px;
  }

  .detail-poster {
    min-height: 360px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }
}
