:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: #111827;
  --bg-card-2: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --line: rgba(148, 163, 184, 0.18);
  --orange: #f97316;
  --red: #dc2626;
  --amber: #f59e0b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.nav-wrap {
  width: min(1240px, calc(100% - 28px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, #fb923c, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
}

.main-nav a {
  color: #cbd5e1;
  font-weight: 650;
  font-size: 15px;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #fb923c;
}

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

.nav-search input,
.wide-search input,
.local input {
  width: 230px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  outline: none;
  color: #fff;
  background: rgba(30, 41, 59, 0.78);
  border-radius: 999px;
  padding: 11px 16px;
}

.nav-search input:focus,
.wide-search input:focus {
  border-color: rgba(249, 115, 22, 0.85);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.nav-search button,
.wide-search button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  padding: 11px 17px;
  border-radius: 999px;
  font-weight: 750;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 12px;
  padding: 9px 12px;
}

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

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.74) 44%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 68px;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 20px 0 14px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-one-line {
  color: #e2e8f0;
  max-width: 720px;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.7;
}

.hero-meta,
.detail-meta,
.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
}

.hero-meta {
  margin: 22px 0 30px;
}

.hero-meta span,
.detail-meta span,
.movie-meta-row span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.65);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
}

.hero-actions,
.detail-copy .btn {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 38px rgba(220, 38, 38, 0.28);
}

.btn.ghost {
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn.text {
  color: #fb923c;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 23, 42, 0.62);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(249, 115, 22, 0.8);
}

.hero-control.prev {
  left: 26px;
}

.hero-control.next {
  right: 26px;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dots button.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.search-hero-panel {
  position: relative;
  z-index: 6;
  margin-top: -54px;
}

.search-panel-inner {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 500px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.88));
  box-shadow: var(--shadow);
}

.search-panel-inner h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.search-panel-inner p {
  margin: 0;
  color: var(--muted);
}

.wide-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.wide-search input {
  width: 100%;
}

.section {
  padding: 58px 0;
}

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

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.03em;
}

.section-more,
.link-arrow {
  color: #fb923c;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  isolation: isolate;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: -2;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.96));
  z-index: -1;
}

.category-tile:hover img {
  transform: scale(1.08);
  opacity: 0.62;
}

.category-tile span,
.category-tile p {
  position: absolute;
  left: 18px;
  right: 18px;
}

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

.category-tile p {
  bottom: 18px;
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.55;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.compact .poster-link,
.compact-grid .poster-link,
.all-grid .poster-link {
  aspect-ratio: 3 / 4;
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.72));
}

.play-icon,
.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 16px 38px rgba(220, 38, 38, 0.38);
  transform: translate(-50%, -50%) scale(0.78);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.duration,
.rank-num {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.duration {
  right: 10px;
  bottom: 10px;
}

.rank-num {
  left: 10px;
  top: 10px;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

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

.movie-card-title {
  display: -webkit-box;
  min-height: 48px;
  margin-bottom: 8px;
  overflow: hidden;
  color: #fff;
  font-weight: 850;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card-title:hover {
  color: #fb923c;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.tag-row span {
  color: #fdba74;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 76px 1fr;
  align-items: center;
  gap: 13px;
  min-height: 104px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.8);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(249, 115, 22, 0.45);
}

.rank-index {
  color: #fb923c;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 76px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
}

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

.rank-copy strong {
  margin-bottom: 8px;
  color: #fff;
  line-height: 1.4;
}

.rank-copy em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-main {
  padding-top: 68px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 68px;
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.22), transparent 34%), linear-gradient(135deg, #020617, #111827 54%, #020617);
}

.page-hero.slim {
  padding: 88px 0 62px;
}

.page-hero h1 {
  max-width: 860px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.82);
  padding: 10px 15px;
  font-weight: 750;
}

.filter-pill.is-active,
.filter-pill:hover {
  color: #fff;
  border-color: rgba(249, 115, 22, 0.55);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.88), rgba(220, 38, 38, 0.88));
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.86);
}

.category-cover-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 18px;
}

.category-cover-strip img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.category-card-large h2 {
  margin: 4px 0 10px;
  font-size: 26px;
}

.category-card-large p {
  color: var(--muted);
  line-height: 1.7;
}

.rank-page-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.rank-aside {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.86);
}

.rank-aside h2 {
  margin: 0 0 16px;
}

.single-column {
  grid-template-columns: 1fr;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 630px;
  padding: 110px 0 64px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(1.08);
  transform: scale(1.04);
}

.detail-backdrop-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.2)), linear-gradient(0deg, #020617 0%, transparent 34%);
}

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 40px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #cbd5e1;
}

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

.detail-meta {
  margin: 18px 0 12px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player {
  background: #000;
}

.player-cover {
  z-index: 3;
  border: 0;
  padding: 0;
  background: #000;
}

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

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

.player-cover-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.76));
}

.big-play {
  width: 88px;
  height: 88px;
  font-size: 34px;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.detail-body-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.detail-text,
.detail-side {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.86);
  padding: 26px;
}

.detail-text h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-text p {
  margin: 0 0 26px;
  color: #d6dee9;
  line-height: 1.92;
  font-size: 16px;
}

.detail-side dl,
.detail-side div {
  margin: 0;
}

.detail-side div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.detail-side div:last-child {
  border-bottom: 0;
}

.detail-side dt {
  color: var(--muted);
}

.detail-side dd {
  margin: 0;
  color: #fff;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), #020617);
  color: #cbd5e1;
}

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

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

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

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

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

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

@media (max-width: 1180px) {
  .main-nav {
    gap: 12px;
  }

  .main-nav a:nth-last-child(-n+4) {
    display: none;
  }

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

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

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

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

  .main-nav {
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a:nth-last-child(-n+4) {
    display: block;
  }

  .hero {
    min-height: 610px;
  }

  .hero-content {
    max-width: calc(100% - 64px);
  }

  .search-panel-inner,
  .rank-page-grid,
  .detail-body-grid,
  .detail-hero-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 330px;
  }

  .rank-aside {
    position: static;
  }

  .category-large-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .container,
  .nav-wrap {
    width: min(100% - 22px, 1180px);
  }

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

  .hero {
    height: auto;
    min-height: 640px;
  }

  .hero-content {
    max-width: calc(100% - 22px);
  }

  .hero-control {
    display: none;
  }

  .hero-actions,
  .wide-search,
  .search-panel-inner {
    grid-template-columns: 1fr;
  }

  .btn,
  .wide-search button {
    width: 100%;
  }

  .category-grid,
  .movie-grid,
  .all-grid,
  .compact-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

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

  .detail-hero {
    padding-top: 92px;
  }

  .detail-copy h1 {
    font-size: 38px;
  }

  .player-shell {
    border-radius: 18px;
  }
}
