:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --card: #1e293b;
  --muted: #94a3b8;
  --text: #f8fafc;
  --subtle: #cbd5e1;
  --orange: #f97316;
  --orange-soft: #fb923c;
  --red: #dc2626;
  --line: rgba(148, 163, 184, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.16), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(220, 38, 38, 0.13), transparent 28%),
    linear-gradient(180deg, #020617 0%, #0f172a 50%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.site-nav {
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

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

.brand-text,
.footer-brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fdba74, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

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

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

.nav-search input,
.mobile-search input,
.hero-search input,
.filter-box input {
  width: 230px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  outline: none;
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  padding: 11px 16px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-box input:focus {
  border-color: var(--orange-soft);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.nav-search button,
.mobile-search button,
.hero-search button {
  border: none;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 700;
}

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

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-panel.open {
  display: block;
}

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

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

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.82);
  color: #e2e8f0;
}

.mobile-link.muted {
  color: #fdba74;
}

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

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.62) 48%, rgba(2, 6, 23, 0.35) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, transparent 42%);
}

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 14px;
  font-weight: 750;
}

.hero h1,
.hero h2,
.page-hero h1 {
  margin: 18px 0 16px;
  max-width: 760px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero h2 {
  font-size: clamp(32px, 6vw, 64px);
}

.hero p,
.page-hero p {
  max-width: 720px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.tag-row,
.category-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.tag-row span,
.category-nav-row a {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.ghost-btn {
  color: #f8fafc;
  border: 1px solid rgba(248, 250, 252, 0.28);
  background: rgba(15, 23, 42, 0.52);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.58);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.active {
  width: 32px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head.narrow {
  margin-bottom: 18px;
}

.section-head h2,
.toolbar h2,
.detail-text h2 {
  margin: 14px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-head p,
.toolbar p,
.detail-text p {
  color: var(--subtle);
  font-size: 17px;
}

.text-link {
  margin-top: 14px;
  color: #fed7aa;
  border: 1px solid rgba(249, 115, 22, 0.25);
  background: rgba(249, 115, 22, 0.12);
}

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

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  isolation: isolate;
}

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.24), rgba(2, 6, 23, 0.94));
}

.category-card:hover img {
  transform: scale(1.08);
  opacity: 0.6;
}

.category-card span {
  display: block;
  margin-top: 70px;
  font-size: 24px;
  font-weight: 850;
}

.category-card p {
  margin: 8px 0 0;
  color: #dbeafe;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.72);
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(249, 115, 22, 0.48);
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.34);
}

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

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

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.year-badge {
  left: 12px;
}

.rank-badge {
  right: 12px;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: rgba(249, 115, 22, 0.86);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

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

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

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 50px;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.38;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: #fdba74;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  font-size: 13px;
}

.movie-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
}

.tag-row {
  margin-top: 12px;
}

.compact-card .movie-title {
  font-size: 16px;
}

.page-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 118px 0 50px;
}

.category-hero,
.rank-hero,
.search-hero {
  padding-bottom: 24px;
}

.category-nav-row {
  margin-top: 24px;
}

.category-nav-row a:hover {
  color: #fed7aa;
  border-color: rgba(249, 115, 22, 0.5);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.filter-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--subtle);
}

.filter-box input {
  width: 280px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background: rgba(30, 41, 59, 0.68);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.42);
}

.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 2 / 3;
}

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

.rank-cover span {
  position: absolute;
  left: 10px;
  top: 10px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
}

.rank-title {
  color: white;
  font-size: 23px;
  font-weight: 850;
}

.rank-title:hover {
  color: #fed7aa;
}

.rank-content p {
  margin: 8px 0;
  color: var(--subtle);
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #cbd5e1;
}

.rank-meta span,
.rank-meta strong {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
}

.breadcrumb {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 104px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
}

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

.detail-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 34px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.88)),
    radial-gradient(circle at 70% 0%, rgba(249, 115, 22, 0.18), transparent 34%);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

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

.detail-info h1 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-info p {
  color: #dbeafe;
  font-size: 19px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 8px;
}

.detail-meta div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
}

.detail-meta span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.detail-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.large-tags span {
  font-size: 14px;
}

.player-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 20px;
}

.video-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: none;
  color: white;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.74));
  cursor: pointer;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 4px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 44px rgba(249, 115, 22, 0.35);
  font-size: 28px;
}

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

.detail-text article {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: rgba(30, 41, 59, 0.62);
}

.detail-text h2 {
  font-size: 26px;
}

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

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

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

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

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

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

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

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

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

@media (max-width: 760px) {
  .site-nav {
    height: 64px;
  }

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

  .hero,
  .hero-content {
    min-height: 68vh;
  }

  .hero-content {
    padding-top: 86px;
  }

  .hero-arrow {
    display: none;
  }

  .section {
    padding: 52px 0;
  }

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

  .category-card {
    min-height: 180px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-box,
  .filter-box input {
    width: 100%;
  }

  .rank-item {
    grid-template-columns: 96px 1fr;
    gap: 14px;
  }

  .rank-title {
    font-size: 18px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

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

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

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

  .hero p,
  .page-hero p,
  .detail-info p {
    font-size: 16px;
  }

  .mobile-links {
    grid-template-columns: 1fr;
  }

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

  .rank-cover {
    max-width: 180px;
  }
}
