:root {
  --bg: #080a10;
  --panel: rgba(17, 24, 39, 0.82);
  --panel-solid: #111827;
  --muted: #9ca3af;
  --text: #f9fafb;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #f97316;
  --accent-2: #fb923c;
  --danger: #ef4444;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(249, 115, 22, 0.18), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(239, 68, 68, 0.14), transparent 30%),
    linear-gradient(180deg, #0b1020 0%, #070910 58%, #050609 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(8, 10, 16, 0.78);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ef4444);
  box-shadow: 0 12px 36px rgba(249, 115, 22, 0.36);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #d1d5db;
  font-size: 15px;
  margin-left: auto;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-2);
}

.nav-search {
  position: relative;
  width: min(300px, 26vw);
}

.nav-search input,
.search-box input,
.search-box select {
  width: 100%;
  border: 1px solid var(--line);
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 12px 18px;
  outline: none;
}

.nav-search input:focus,
.search-box input:focus,
.search-box select:focus {
  border-color: rgba(249, 115, 22, 0.72);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(17, 24, 39, 0.94);
}

.mobile-panel a {
  display: block;
  padding: 10px 0;
  color: #e5e7eb;
}

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

.hero {
  position: relative;
  min-height: 680px;
  margin: 28px auto 70px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111827;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease, transform 1.4s ease;
  transform: scale(1.02);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.70) 42%, rgba(0, 0, 0, 0.16) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, transparent 54%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 46px;
  align-items: end;
  min-height: 680px;
  padding: 72px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: white;
  background: linear-gradient(135deg, var(--accent), #ef4444);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.32);
}

.hero h1,
.hero h2 {
  margin: 22px 0 14px;
  max-width: 760px;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.hero p {
  max-width: 700px;
  margin: 0 0 24px;
  color: #d1d5db;
  font-size: 18px;
}

.hero-meta,
.meta-row,
.tag-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pill,
.tag,
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ef4444);
  border-color: transparent;
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fb923c, #f43f5e);
}

.hero-side {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
}

.hero-mini {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.hero-mini img {
  width: 84px;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f2937, #111827);
}

.hero-mini strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.hero-mini span {
  color: #9ca3af;
  font-size: 13px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 72px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 36px;
  height: 6px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.28);
  padding: 0;
}

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

.section {
  margin: 64px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 950;
}

.section-desc {
  max-width: 720px;
  color: var(--muted);
  margin-top: 8px;
}

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

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

.card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.38), rgba(15, 23, 42, 0.92));
}

.cover.wide {
  aspect-ratio: 16 / 9;
}

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

.card:hover .cover img {
  transform: scale(1.06);
}

.cover::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), transparent);
}

.cover-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 6px;
  font-weight: 850;
  font-size: 17px;
  line-height: 1.38;
}

.card-text {
  margin: 0;
  color: #aeb6c4;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-card {
  min-height: 160px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 18%, rgba(249, 115, 22, 0.22), transparent 38%),
    rgba(17, 24, 39, 0.78);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.48);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.featured-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
}

.featured-large {
  position: relative;
  min-height: 520px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.featured-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.featured-large::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.12));
}

.featured-large-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 34px;
}

.featured-large h3 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
}

.featured-stack {
  display: grid;
  gap: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 82px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  background: rgba(17, 24, 39, 0.78);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

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

.rank-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: linear-gradient(135deg, var(--accent), #ef4444);
  font-weight: 900;
}

.rank-thumb {
  width: 82px;
  height: 108px;
  object-fit: cover;
  border-radius: 14px;
  background: #111827;
}

.rank-item h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  margin: 34px 0 42px;
  padding: clamp(34px, 6vw, 64px);
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 20%, rgba(249, 115, 22, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(8, 10, 16, 0.74));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: #cbd5e1;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 14px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin: 24px 0 0;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.54));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-shell.is-playing .play-layer {
  opacity: 0;
  visibility: hidden;
}

.play-button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--accent), #ef4444);
  box-shadow: 0 24px 72px rgba(239, 68, 68, 0.38);
  font-size: 34px;
  line-height: 1;
}

.detail-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(17, 24, 39, 0.78);
  padding: 24px;
}

.detail-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-panel p {
  color: #d1d5db;
}

.detail-cover {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.42), rgba(17, 24, 39, 0.96));
}

.info-table {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.info-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-row span:first-child {
  color: var(--muted);
}

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

.footer {
  margin-top: 76px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.26);
}

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

.empty-state {
  display: none;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--muted);
  background: rgba(17, 24, 39, 0.78);
}

.movie-card.is-hidden,
.rank-item.is-hidden {
  display: none;
}

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

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

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

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

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

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

  .nav-links {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

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

  .hero {
    min-height: 700px;
    border-radius: 24px;
  }

  .hero-content {
    min-height: 700px;
    padding: 34px 24px 78px;
  }

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

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

  .hero-dots {
    left: 24px;
    bottom: 26px;
  }

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

  .search-box {
    grid-template-columns: 1fr;
  }

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

  .rank-item .rank-badge {
    display: none;
  }
}

@media (max-width: 480px) {
  .page,
  .navbar,
  .footer-inner,
  .mobile-panel {
    width: min(100% - 22px, 1240px);
  }

  .logo {
    font-size: 18px;
  }

  .grid,
  .grid.compact,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-mini {
    grid-template-columns: 74px 1fr;
  }

  .hero-mini img {
    width: 74px;
    height: 98px;
  }
}
