:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: rgba(30, 41, 59, 0.58);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --border: rgba(148, 163, 184, 0.22);
  --text: #e5eefc;
  --muted: #94a3b8;
  --weak: #64748b;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #2563eb;
  --orange: #f97316;
  --green: #22c55e;
  --shadow: 0 22px 60px rgba(2, 8, 23, 0.38);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 32rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #111827 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 42px rgba(2, 8, 23, 0.28);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  box-shadow: 0 12px 34px rgba(6, 182, 212, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
}

.brand-text {
  display: grid;
  gap: 0;
}

.brand-text strong {
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.86);
  color: white;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

.mobile-nav .nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.54);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-bg-item {
  position: relative;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-bg-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.18));
}

.hero-bg-item.is-active {
  transform: scale(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.86) 42%, rgba(15, 23, 42, 0.44) 100%),
    linear-gradient(0deg, #020617 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 380px;
  align-items: center;
  gap: 42px;
  padding: 68px 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(8, 145, 178, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.hero h1,
.page-hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #cbd5e1;
  font-size: 19px;
}

.hero-search {
  display: flex;
  max-width: 620px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 14px 16px;
  border-radius: 12px;
  background: transparent;
  color: white;
}

.hero-search input::placeholder {
  color: #64748b;
}

.hero-search button,
.button {
  border: 0;
  border-radius: 12px;
  padding: 13px 20px;
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.hero-search button,
.button-primary {
  background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
  box-shadow: 0 14px 34px rgba(6, 182, 212, 0.24);
}

.button-secondary {
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

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

.hero-cats a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 13px;
}

.hero-panel {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.panel-title {
  padding: 20px 22px;
  font-weight: 900;
  color: white;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.panel-list {
  display: grid;
}

.panel-list a {
  display: grid;
  gap: 4px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  transition: background 0.2s ease;
}

.panel-list a:hover {
  background: rgba(34, 211, 238, 0.1);
}

.panel-list strong {
  color: white;
}

.panel-list span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 70px 0;
}

.section-soft {
  background: rgba(15, 23, 42, 0.32);
}

.section-panel .container,
.section-panel .split-layout > div:first-child {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 30px;
  padding: 34px;
  background: rgba(30, 41, 59, 0.28);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.section-heading > span {
  width: 5px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.section-heading--orange > span {
  background: linear-gradient(180deg, #fb7185, var(--orange));
}

.section-heading--green > span {
  background: linear-gradient(180deg, #86efac, var(--green));
}

.section-heading--blue > span {
  background: linear-gradient(180deg, #60a5fa, var(--blue));
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  color: white;
}

.section-heading p {
  margin: 2px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.42);
  box-shadow: 0 16px 40px rgba(2, 8, 23, 0.16);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.48);
  box-shadow: 0 22px 54px rgba(6, 182, 212, 0.14);
}

.card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease;
}

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

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 58%);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.86);
  background: rgba(6, 182, 212, 0.9);
  color: white;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: white;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

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

.card-body strong {
  color: white;
  font-size: 17px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover strong {
  color: var(--cyan);
}

.card-body em {
  min-height: 46px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--weak);
  font-size: 13px;
}

.card-meta b {
  color: var(--cyan);
  font-weight: 700;
}

.movie-card--featured {
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.58);
}

.movie-card--featured .card-body {
  padding: 22px;
}

.movie-card--featured .card-body strong {
  font-size: 21px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
}

.rank-card {
  position: sticky;
  top: 98px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.rank-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.rank-card-head h2 {
  margin: 0;
  color: white;
}

.rank-card-head a {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 48px 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  background: rgba(30, 41, 59, 0.76);
  border-color: rgba(34, 211, 238, 0.32);
}

.rank-index {
  color: var(--cyan);
  font-weight: 900;
  font-size: 18px;
  text-align: center;
}

.rank-row img {
  width: 82px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.72);
}

.rank-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

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

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

.rank-extra {
  color: var(--weak);
  font-size: 13px;
}

.rank-list--large .rank-row {
  grid-template-columns: 60px 120px minmax(0, 1fr) 70px;
}

.rank-list--large .rank-row img {
  width: 120px;
  height: 74px;
}

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

.category-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.15), transparent 12rem),
    rgba(30, 41, 59, 0.42);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.48);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.22), transparent 12rem),
    rgba(30, 41, 59, 0.72);
}

.category-card span {
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.category-card strong {
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}

.page-hero {
  padding: 86px 0 58px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 26rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.2));
}

.page-hero--small h1 {
  font-size: clamp(38px, 5vw, 56px);
}

.page-search {
  margin-top: 26px;
}

.local-filter {
  max-width: 560px;
  margin-top: 26px;
}

.local-filter input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  background: rgba(15, 23, 42, 0.72);
  color: white;
}

.search-status {
  margin-bottom: 24px;
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.detail-page {
  padding: 36px 0 12px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--cyan);
}

.detail-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 26px;
  background: rgba(30, 41, 59, 0.46);
  box-shadow: var(--shadow);
}

.player-wrap {
  position: relative;
  background: #000;
}

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

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: white;
  background: rgba(6, 182, 212, 0.92);
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.32);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.big-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

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

.detail-content {
  padding: clamp(24px, 4vw, 42px);
}

.detail-content h1 {
  margin: 0 0 18px;
  color: white;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #dbeafe;
  font-size: 14px;
}

.one-line {
  margin: 0 0 28px;
  color: var(--cyan);
  font-size: 20px;
  font-style: italic;
}

.detail-content section {
  margin-top: 28px;
}

.detail-content h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 22px;
}

.detail-content p {
  margin: 0;
  color: #cbd5e1;
}

.tag-box div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-box span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.76);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 13px;
}

.detail-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.detail-switch a {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-switch a:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.36);
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.72);
  padding-top: 54px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr);
  gap: 40px;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--muted);
}

.site-footer h3 {
  margin: 0 0 14px;
  color: white;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: var(--cyan);
}

.footer-bottom {
  margin-top: 42px;
  padding: 22px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
  color: var(--weak);
  font-size: 14px;
}

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

@media (max-width: 1024px) {
  .hero-content,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .rank-card {
    position: static;
  }

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

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

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

  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 72px 0 44px;
  }

  .hero-bg-grid {
    grid-template-columns: 1fr;
  }

  .hero-bg-item:not(:first-child) {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-search {
    display: grid;
  }

  .grid-3,
  .grid-4,
  .category-grid,
  .footer-grid,
  .detail-switch {
    grid-template-columns: 1fr;
  }

  .section,
  .page-hero {
    padding: 48px 0;
  }

  .section-panel .container,
  .section-panel .split-layout > div:first-child {
    padding: 22px;
  }

  .rank-row,
  .rank-list--large .rank-row {
    grid-template-columns: 42px 82px minmax(0, 1fr);
  }

  .rank-extra {
    display: none;
  }

  .rank-list--large .rank-row img {
    width: 82px;
    height: 52px;
  }

  .big-play {
    width: 64px;
    height: 64px;
  }
}
