:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #1e293b;
  --line: #334155;
  --muted: #94a3b8;
  --text: #e2e8f0;
  --white: #ffffff;
  --orange: #f97316;
  --orange-soft: #fb923c;
  --red: #dc2626;
  --shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 28rem),
    radial-gradient(circle at top right, rgba(220, 38, 38, 0.14), transparent 32rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 26px rgba(249, 115, 22, 0.28);
}

.brand-text strong {
  display: block;
  color: var(--white);
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  margin-top: -2px;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--white);
  background: rgba(249, 115, 22, 0.95);
}

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

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

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding: 12px 20px 18px;
  background: rgba(15, 23, 42, 0.96);
}

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

.mobile-link {
  padding: 12px 14px;
}

.hero-carousel {
  position: relative;
  min-height: 74vh;
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.92)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-backdrop {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 88px 24px 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-soft);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-copy h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.hero-summary {
  max-width: 780px;
  margin: 24px 0 0;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

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

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

.hero-tags span,
.detail-tags a,
.tag-list span {
  border: 1px solid rgba(249, 115, 22, 0.36);
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.12);
  border-radius: 999px;
}

.hero-tags span,
.detail-tags a {
  padding: 7px 12px;
}

.tag-list span {
  padding: 4px 9px;
  font-size: 12px;
}

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

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

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

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 30px rgba(249, 115, 22, 0.22);
}

.btn.ghost {
  color: var(--white);
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(148, 163, 184, 0.28);
}

.btn.wide {
  width: 100%;
  margin-top: 18px;
}

.hero-poster {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
  background: var(--panel-soft);
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 16px;
  text-align: center;
  border-radius: 14px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
  font-weight: 800;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.25);
  cursor: pointer;
  font-size: 34px;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dots button.active {
  width: 30px;
  background: var(--orange);
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px;
}

.section-narrow {
  max-width: 1180px;
}

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: -20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.72));
  box-shadow: var(--shadow);
}

.intro-strip h2,
.section-heading h2,
.panel-title h2,
.info-card h2,
.detail-article h2 {
  margin: 0;
  color: var(--white);
  letter-spacing: -0.03em;
}

.intro-strip h2 {
  font-size: clamp(28px, 4vw, 46px);
}

.quick-search,
.global-search-box {
  display: flex;
  gap: 10px;
  width: min(100%, 520px);
}

.quick-search input,
.global-search-box input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.78);
  color: var(--white);
  outline: none;
}

.quick-search input,
.global-search-box input {
  min-height: 50px;
  padding: 0 16px;
}

.quick-search button,
.global-search-box button {
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: var(--orange);
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
}

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

.section-heading h2,
.panel-title h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.section-link {
  color: var(--orange-soft);
  font-weight: 800;
}

.category-grid,
.category-overview {
  display: grid;
  gap: 18px;
}

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

.category-tile,
.category-card {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.12), transparent),
    rgba(15, 23, 42, 0.86);
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.category-tile {
  padding: 22px;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.42);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.18), transparent),
    rgba(30, 41, 59, 0.95);
}

.category-tile span,
.category-card h2 {
  display: block;
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
}

.category-tile p,
.category-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

.category-card {
  overflow: hidden;
}

.category-card-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  height: 180px;
  overflow: hidden;
  background: #000;
}

.category-card-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card > div:last-child {
  padding: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.42);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--panel-soft);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78));
  opacity: 0.85;
}

.poster-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.poster-year,
.poster-type {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 5px 9px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.poster-year {
  left: 12px;
  color: var(--white);
  background: var(--orange);
}

.poster-type {
  right: 12px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.72);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 18px;
  line-height: 1.3;
}

.card-body h3 a:hover {
  color: var(--orange-soft);
}

.card-body p {
  height: 3.2em;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: #cbd5e1;
  font-size: 12px;
}

.card-meta span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.section-grid-layout,
.ranking-layout,
.detail-layout {
  display: grid;
  align-items: start;
  gap: 28px;
}

.section-grid-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.ranking-layout {
  grid-template-columns: 360px minmax(0, 1fr);
}

.ranking-panel,
.info-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: var(--shadow);
}

.ranking-panel {
  padding: 22px;
}

.sticky-panel {
  position: sticky;
  top: 92px;
}

.ranking-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 34px 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.6);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
  background: rgba(249, 115, 22, 0.14);
}

.rank-number {
  color: var(--orange-soft);
  font-weight: 900;
  font-size: 18px;
}

.ranking-item img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info strong {
  color: var(--white);
  font-size: 14px;
}

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

.sub-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.sub-hero {
  padding: 92px 24px 54px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(249, 115, 22, 0.14), rgba(2, 6, 23, 0)),
    radial-gradient(circle at top, rgba(249, 115, 22, 0.16), transparent 34rem);
}

.sub-hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.sub-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 22px auto 0;
  color: #cbd5e1;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 190px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  padding: 0 13px;
}

.detail-hero {
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.95)),
    var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-mask {
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.detail-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 74px 24px 76px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

.breadcrumb a:hover {
  color: var(--orange-soft);
}

.detail-copy h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.detail-copy p:not(.eyebrow) {
  max-width: 850px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: 20px;
}

.detail-tags {
  margin-top: 22px;
}

.detail-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--white);
  border: 0;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.3), rgba(2, 6, 23, 0.84));
}

.player-cover.hidden {
  display: none;
}

.play-circle {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.28);
  font-size: 30px;
}

.player-cover strong {
  font-size: 20px;
}

.detail-article,
.info-card {
  margin-top: 24px;
  padding: 24px;
}

.detail-article {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
}

.detail-article h2 {
  font-size: 28px;
  margin-top: 22px;
}

.detail-article h2:first-child {
  margin-top: 0;
}

.detail-article p {
  margin: 12px 0 0;
  color: #cbd5e1;
  font-size: 17px;
}

.info-card ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.info-card li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.info-card li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-card span {
  color: var(--muted);
}

.info-card strong {
  color: var(--white);
  text-align: right;
}

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

.global-search-box {
  max-width: 820px;
  margin: 0 auto 30px;
}

.site-footer {
  position: relative;
  margin-top: 40px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 1));
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 32px;
}

.footer-brand {
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.footer-links a {
  color: #cbd5e1;
}

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

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.26);
  cursor: pointer;
}

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

  .menu-toggle {
    display: block;
  }

  .hero-content,
  .section-grid-layout,
  .ranking-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .ranking-panel,
  .sticky-panel {
    position: static;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    height: 66px;
    padding: 0 16px;
  }

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

  .brand-text em {
    display: none;
  }

  .hero-content {
    min-height: 70vh;
    padding: 72px 20px 80px;
  }

  .hero-control {
    display: none;
  }

  .intro-strip,
  .section-heading,
  .quick-search,
  .global-search-box,
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section {
    padding: 42px 16px;
  }

  .category-grid,
  .category-overview,
  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .detail-inner {
    grid-template-columns: 1fr;
    padding: 48px 16px 58px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .category-grid,
  .category-overview,
  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }
}
