:root {
  --bg-deep: #020617;
  --bg-main: #0f172a;
  --bg-soft: rgba(30, 41, 59, 0.58);
  --bg-panel: rgba(15, 23, 42, 0.76);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(16, 185, 129, 0.44);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-bright: #cbd5e1;
  --accent: #10b981;
  --accent-dark: #059669;
  --accent-soft: rgba(16, 185, 129, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.18), transparent 34%),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.14), transparent 28%),
    linear-gradient(135deg, #020617 0%, #0f172a 46%, #111827 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--accent), #34d399);
  box-shadow: 0 0 32px rgba(16, 185, 129, 0.4);
  font-size: 15px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-subtitle {
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted-bright);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #6ee7b7;
  background: rgba(30, 41, 59, 0.74);
}

.header-search {
  display: flex;
  align-items: center;
  width: 280px;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
}

.header-search input,
.mobile-search input,
.search-panel input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.header-search input {
  padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.search-panel button {
  border: 0;
  color: white;
  background: var(--accent);
  cursor: pointer;
  transition: background 0.2s ease;
}

.header-search button {
  padding: 10px 16px;
}

.header-search button:hover,
.mobile-search button:hover,
.search-panel button:hover {
  background: var(--accent-dark);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.82);
  padding: 8px 12px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.96);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu__inner {
  display: grid;
  gap: 10px;
  padding: 14px 0 18px;
}

.mobile-search {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.82);
}

.mobile-search input {
  padding: 10px 14px;
}

.mobile-search button {
  padding: 10px 16px;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.68) 46%, rgba(15, 23, 42, 0.25) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.58) 42%, rgba(2, 6, 23, 0.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  min-height: 600px;
  padding: 92px 0 76px;
}

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

.section-kicker {
  margin: 0 0 10px;
  color: #6ee7b7;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.hero-meta span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(16, 185, 129, 0.25);
  backdrop-filter: blur(12px);
  font-size: 13px;
}

.hero-desc {
  margin: 0 0 22px;
  max-width: 620px;
  color: #cbd5e1;
  font-size: 19px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: white;
  background: var(--accent);
  box-shadow: 0 14px 34px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  color: #d1fae5;
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: rgba(16, 185, 129, 0.42);
  background: rgba(16, 185, 129, 0.13);
}

.btn-block {
  width: 100%;
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.32);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 54px;
  background: var(--accent);
}

.section-block {
  padding: 70px 0 0;
}

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

.section-title-row h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-link {
  color: #6ee7b7;
  font-weight: 800;
}

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  box-shadow: 0 16px 54px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 70px rgba(16, 185, 129, 0.14);
}

.movie-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #020617;
}

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

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

.movie-card__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), transparent 56%);
}

.movie-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: white;
  background: rgba(16, 185, 129, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .movie-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card__badge,
.movie-card__region {
  position: absolute;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(10px);
}

.movie-card__badge--year {
  top: 10px;
  left: 10px;
  background: rgba(16, 185, 129, 0.9);
}

.movie-card__badge--type {
  top: 10px;
  right: 10px;
}

.movie-card__region {
  left: 10px;
  bottom: 10px;
}

.movie-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px;
}

.movie-card__title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
}

.movie-card__title a:hover {
  color: #6ee7b7;
}

.movie-card__desc {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card--small .movie-card__body {
  padding: 12px;
}

.movie-card--small .movie-card__title {
  font-size: 15px;
}

.movie-card--small .movie-card__desc {
  font-size: 13px;
}

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

.category-card,
.category-overview-card,
.detail-card,
.player-card,
.related-panel,
.poster-panel,
.filter-panel,
.search-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}

.category-card {
  overflow: hidden;
}

.category-card > a {
  display: block;
  min-height: 210px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.18), transparent 45%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.92));
}

.category-card__label {
  color: #6ee7b7;
  font-size: 13px;
  font-weight: 800;
}

.category-card h3 {
  margin: 14px 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: var(--muted-bright);
}

.category-card__action {
  display: inline-flex;
  margin-top: 20px;
  color: #6ee7b7;
  font-weight: 800;
}

.category-card__preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border);
}

.category-card__preview a,
.pill-nav a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted-bright);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  font-size: 13px;
}

.category-card__preview a:hover,
.pill-nav a:hover {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.4);
}

.page-hero {
  padding: 74px 0 28px;
}

.page-hero p:not(.section-kicker) {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted-bright);
  font-size: 18px;
}

.category-overview-list {
  display: grid;
  gap: 34px;
  padding-bottom: 30px;
}

.category-overview-card {
  padding: 28px;
}

.category-overview-desc {
  margin: -12px 0 26px;
  color: var(--muted-bright);
}

.filter-panel,
.search-panel {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 14px;
  padding: 18px;
}

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

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted-bright);
  font-size: 14px;
}

.filter-panel input,
.filter-panel select,
.search-panel input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.5);
}

.filter-panel select option {
  color: #0f172a;
}

.search-panel__form {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.5);
}

.search-panel input {
  border: 0;
}

.search-panel button {
  padding: 0 26px;
}

.empty-state {
  display: none;
  margin-top: 20px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--muted-bright);
  background: rgba(15, 23, 42, 0.58);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.ranking-list--wide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rank-item__link {
  display: grid;
  grid-template-columns: 48px 58px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.55);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-item__link:hover {
  border-color: rgba(16, 185, 129, 0.42);
  transform: translateY(-2px);
}

.rank-item__number {
  color: #6ee7b7;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 58px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  background: #020617;
}

.rank-item__content {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.rank-item__content strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item__content em {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding-top: 36px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #6ee7b7;
}

.player-card {
  overflow: hidden;
  margin-bottom: 22px;
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: white;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.24));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.play-cover__icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.92);
  box-shadow: 0 18px 44px rgba(16, 185, 129, 0.32);
  font-size: 30px;
}

.play-cover__text {
  font-size: 18px;
  font-weight: 900;
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.detail-card h2,
.related-panel h2,
.site-footer h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 22px;
}

.detail-card section {
  margin-top: 26px;
}

.detail-card p {
  margin: 0;
  color: var(--muted-bright);
  text-align: justify;
}

.highlight-text {
  color: #6ee7b7 !important;
  font-weight: 700;
}

.review-box {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(2, 6, 23, 0.36);
}

.detail-aside {
  display: grid;
  align-content: start;
  gap: 20px;
}

.poster-panel,
.related-panel {
  padding: 18px;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 2 / 3;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: #020617;
}

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

.related-list .movie-card {
  display: grid;
  grid-template-columns: 88px 1fr;
}

.related-list .movie-card__poster {
  aspect-ratio: 2 / 3;
}

.related-list .movie-card__body {
  padding: 12px;
}

.related-list .movie-card__badge,
.related-list .movie-card__region,
.related-list .movie-card__play {
  display: none;
}

.site-footer {
  margin-top: 86px;
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.88);
}

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

.footer-logo {
  margin-bottom: 12px;
  font-size: 21px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

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

.footer-links a {
  color: var(--muted-bright);
}

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}

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

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

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

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    grid-template-columns: 280px 1fr;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
  }

  .header-inner {
    min-height: 64px;
  }

  .logo-title {
    font-size: 17px;
  }

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

  .hero-content {
    padding: 84px 0 70px;
  }

  .section-title-row {
    align-items: start;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid--six,
  .category-grid,
  .ranking-list--grid,
  .ranking-list--wide,
  .filter-panel,
  .footer-grid,
  .detail-aside {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    gap: 16px;
  }

  .related-list .movie-card {
    grid-template-columns: 96px 1fr;
  }
}

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

  .site-logo {
    gap: 8px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .logo-subtitle {
    display: none;
  }

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

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-desc,
  .page-hero p:not(.section-kicker) {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .movie-card__body {
    padding: 11px;
  }

  .movie-card__title {
    font-size: 15px;
  }

  .movie-card__desc {
    font-size: 13px;
  }

  .rank-item__link {
    grid-template-columns: 42px 54px 1fr;
  }

  .detail-card,
  .category-overview-card {
    padding: 20px;
  }
}
