:root {
  --bg: #0f172a;
  --bg-soft: #111c31;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: #162238;
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft-text: #cbd5e1;
  --line: rgba(148, 163, 184, 0.22);
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-soft: rgba(249, 115, 22, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(249, 115, 22, 0.16), transparent 28rem),
    radial-gradient(circle at 85% 6%, rgba(59, 130, 246, 0.12), transparent 26rem),
    linear-gradient(180deg, #0b1120 0%, #0f172a 42%, #111827 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.28);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), #fb923c);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.34);
}

.brand-text {
  font-size: 1.25rem;
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  color: var(--soft-text);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: var(--orange-soft);
}

.header-search {
  display: flex;
  width: 300px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
}

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

.header-search input {
  padding: 8px 12px;
}

.header-search button,
.mobile-search button,
.home-search-band button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.home-search-band button:hover,
.btn:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 999px;
}

.mobile-panel {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-strong);
}

.mobile-link {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero-carousel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.74) 42%, rgba(15, 23, 42, 0.26) 100%),
    linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 32px));
  min-height: 72vh;
  margin: 0 auto;
  padding: 110px 0 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-kicker,
.section-heading span,
.page-hero span,
.category-page-card span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: var(--orange);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-copy h1 {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content .hero-movie-title {
  margin-top: 14px;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  color: #fed7aa;
}

.hero-content p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  margin: 20px 0 0;
  color: #e2e8f0;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.8;
}

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

.hero-meta a,
.hero-meta span,
.detail-meta span,
.tag-row span {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

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

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

.btn.primary,
.btn.small {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.25);
}

.btn.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.btn.small {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
  font-size: 2.5rem;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
}

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

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

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--orange);
}

.home-search-band,
.section-block,
.page-hero,
.detail-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.home-search-band {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 28px;
  align-items: center;
  margin-top: -42px;
  position: relative;
  z-index: 5;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(22, 34, 56, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.home-search-band strong {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.home-search-band p {
  margin: 8px 0 0;
  color: var(--muted);
}

.home-search-band form {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
}

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

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

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

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-heading a,
.text-link {
  color: #fdba74;
  font-weight: 800;
}

.compact-heading {
  align-items: flex-start;
  margin-bottom: 20px;
}

.compact-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.68);
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.18);
  transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.38);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.poster-wrap img,
.category-cover-stack img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88), transparent);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 38px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ef4444);
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.28);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: rgba(148, 163, 184, 0.58);
}

.movie-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #fdba74;
}

.movie-card p {
  min-height: 48px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.94rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  padding: 6px 9px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.22);
  font-size: 0.78rem;
}

.compact-card .movie-card-body {
  padding: 15px;
}

.compact-card p {
  min-height: 0;
}

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

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

.latest-panel {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: rgba(22, 34, 56, 0.72);
  box-shadow: var(--shadow);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: rgba(249, 115, 22, 0.12);
  transform: translateX(4px);
}

.rank-row img {
  width: 74px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.96rem;
}

.rank-row em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
}

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

.category-card,
.category-page-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(249, 115, 22, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(15, 23, 42, 0.68);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.18);
}

.category-card h3,
.category-page-card h2 {
  margin: 18px 0 14px;
  font-size: 1.25rem;
  line-height: 1.55;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.mini-links a {
  color: var(--soft-text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.85rem;
}

.mini-links a:hover {
  color: #fff;
  border-color: rgba(249, 115, 22, 0.42);
  background: rgba(249, 115, 22, 0.1);
}

.page-hero {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 58px;
  background:
    radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.22), transparent 24rem),
    linear-gradient(135deg, rgba(22, 34, 56, 0.92), rgba(15, 23, 42, 0.78));
  box-shadow: var(--shadow);
}

.small-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
}

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

.category-page-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: center;
}

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

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-cover-stack img {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
}

.filter-panel {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(22, 34, 56, 0.72);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(140px, 1fr));
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.filter-grid input,
.filter-grid select {
  height: 46px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
}

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

.empty-state {
  margin: 16px 0 0;
  color: #fdba74;
}

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

.searchable-card.is-filtered {
  display: none;
}

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

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

.detail-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.48;
}

.detail-shade {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.72)),
    linear-gradient(0deg, #0f172a, rgba(15, 23, 42, 0.12) 68%);
}

.detail-inner {
  position: relative;
  z-index: 2;
  padding: 38px 0 68px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  margin-bottom: 34px;
}

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

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

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  margin-top: 18px;
}

.detail-tags span {
  font-size: 0.88rem;
}

.anchor-play {
  margin-top: 28px;
}

.detail-section {
  padding-top: 58px;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.22), rgba(2, 6, 23, 0.42));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), #ef4444);
  font-size: 2.2rem;
  box-shadow: 0 22px 64px rgba(249, 115, 22, 0.42);
}

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

.detail-text article {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  background: rgba(22, 34, 56, 0.72);
}

.detail-text h2 {
  margin: 0 0 16px;
  font-size: 1.55rem;
}

.detail-text p {
  margin: 0;
  color: var(--soft-text);
  line-height: 1.9;
}

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

.footer-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: start;
}

.footer-links a {
  color: var(--soft-text);
}

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

.footer-bottom {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  .movie-grid,
  .category-movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .latest-panel {
    position: static;
  }

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

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

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

  .hero-arrow {
    display: none;
  }

  .home-search-band,
  .footer-inner,
  .detail-grid,
  .detail-text,
  .category-page-card {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    max-width: 360px;
  }

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

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 22px, 1220px);
  }

  .hero-content {
    min-height: 76vh;
    padding: 96px 0 72px;
  }

  .hero-content h1,
  .hero-content h2,
  .detail-copy h1 {
    font-size: clamp(2.1rem, 13vw, 3.6rem);
  }

  .home-search-band,
  .section-block,
  .page-hero,
  .detail-inner,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 22px, 1220px);
  }

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

  .home-search-band form,
  .mobile-search {
    border-radius: 18px;
    flex-direction: column;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-block;
    margin-top: 12px;
  }

  .movie-grid,
  .rank-grid,
  .category-movie-grid,
  .category-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    min-height: auto;
  }

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

  .play-circle {
    width: 76px;
    height: 76px;
    font-size: 1.8rem;
  }
}
