:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #111827;
  --panel-soft: #1f2937;
  --border: #283241;
  --text: #ffffff;
  --muted: #9ca3af;
  --muted-strong: #d1d5db;
  --orange: #f97316;
  --orange-soft: rgba(249, 115, 22, 0.18);
  --red: #dc2626;
  --yellow: #eab308;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 24, 39, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

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

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

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

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  color: var(--muted-strong);
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: var(--panel-soft);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 20px;
}

.mobile-nav {
  display: none;
  padding: 8px 24px 18px;
  border-top: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.98);
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  background: #1f2937;
  color: var(--muted-strong);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12)), linear-gradient(0deg, #050505, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  min-height: 76vh;
  margin: 0 auto;
  padding: 96px 24px 80px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fb923c;
  background: var(--orange-soft);
  border: 1px solid rgba(249, 115, 22, 0.62);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted-strong);
  margin-bottom: 18px;
}

.hero-summary {
  max-width: 680px;
  color: var(--muted-strong);
  font-size: 18px;
  margin: 0 0 28px;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(90deg, var(--orange), var(--red));
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(249, 115, 22, 0.34);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(31, 41, 55, 0.78);
  border-color: rgba(255, 255, 255, 0.12);
}

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

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

.hero-dot.active {
  background: linear-gradient(90deg, #fb923c, #ef4444);
}

.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px 72px;
}

.section {
  margin-top: 52px;
}

.section:first-child {
  margin-top: 0;
}

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

.section-title {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
}

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

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

.movie-card {
  background: rgba(17, 24, 39, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.6);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #000000);
}

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

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

.card-badge,
.play-mark,
.detail-badge {
  position: absolute;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.card-badge {
  left: 10px;
  top: 10px;
  padding: 3px 9px;
  font-size: 12px;
  color: #ffffff;
}

.play-mark {
  right: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

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

.movie-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

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

.movie-meta,
.movie-genre,
.movie-desc {
  color: var(--muted);
  font-size: 13px;
  margin: 5px 0 0;
}

.movie-desc {
  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: 18px;
}

.category-card {
  min-height: 190px;
  border-radius: 22px;
  padding: 24px;
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.32), transparent 38%), linear-gradient(135deg, #111827, #030712);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  color: var(--muted-strong);
  margin: 0 0 18px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 76px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.rank-poster {
  width: 76px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #111827;
}

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

.rank-info a {
  font-size: 18px;
  font-weight: 800;
}

.rank-info p {
  margin: 4px 0 0;
  color: var(--muted);
}

.rank-score {
  color: #ffffff;
  background: var(--orange-soft);
  border: 1px solid rgba(249, 115, 22, 0.44);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.filters {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(160px, 0.5fr));
  gap: 12px;
  margin: 22px 0;
}

.filters input,
.filters select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #111827;
  color: #ffffff;
  padding: 0 14px;
  outline: none;
}

.filters input:focus,
.filters select:focus {
  border-color: var(--orange);
}

.detail-hero {
  position: relative;
  background: #000000;
  overflow: hidden;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.38;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #050505, rgba(5, 5, 5, 0.82), rgba(5, 5, 5, 0.42)), linear-gradient(0deg, #050505, transparent);
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 74px 24px 56px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster {
  border-radius: 22px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  margin: 12px 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.08;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted-strong);
  margin-bottom: 18px;
}

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

.tag-list span {
  color: #fb923c;
  background: var(--orange-soft);
  border: 1px solid rgba(249, 115, 22, 0.38);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2), rgba(0, 0, 0, 0.68));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  border: 0;
  color: #ffffff;
  font-size: 32px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.38);
}

.article-panel {
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 26px;
  margin-top: 22px;
}

.article-panel h2,
.article-panel h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.article-panel p {
  color: var(--muted-strong);
  margin: 0;
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

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

.search-empty {
  color: var(--muted);
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #030712;
  padding: 44px 24px 26px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 28px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--muted);
}

.footer-grid h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

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

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

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

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

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

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

  .category-grid,
  .footer-grid,
  .detail-inner,
  .filters {
    grid-template-columns: 1fr;
  }

  .detail-inner {
    align-items: start;
  }

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

  .rank-row {
    grid-template-columns: 42px 62px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
    width: fit-content;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .page-main,
  .hero-content,
  .detail-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .movie-grid {
    gap: 12px;
  }

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