:root {
  color-scheme: dark;
  --bg: #070b13;
  --bg-soft: #111827;
  --bg-card: rgba(31, 41, 55, 0.72);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #a7b0c0;
  --orange: #f97316;
  --red: #dc2626;
  --gold: #facc15;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 32rem), linear-gradient(180deg, #0b1220 0%, #111827 42%, #030712 100%);
  color: var(--text);
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

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

.nav-wrap,
.section-wrap,
.footer-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 16px 38px rgba(249, 115, 22, 0.3);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a,
.mobile-panel a {
  border-radius: 12px;
  color: #d1d5db;
  font-size: 0.94rem;
  font-weight: 650;
  padding: 10px 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover,
.nav-links a.active,
.mobile-panel a.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.95), rgba(220, 38, 38, 0.95));
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(31, 41, 55, 0.92);
}

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

.mobile-panel.open {
  display: grid;
  gap: 6px;
}

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

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

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.16));
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #030712 0%, transparent 46%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 72vh;
}

.hero-copy {
  width: min(680px, 100%);
  padding: 92px 0 74px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 16px;
  border: 1px solid rgba(249, 115, 22, 0.9);
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.18);
  color: #fdba74;
  font-size: 0.9rem;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.9rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 650px;
  margin-bottom: 28px;
  color: #d1d5db;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.meta-row,
.card-meta,
.movie-meta,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #d1d5db;
}

.meta-row {
  margin-bottom: 22px;
}

.meta-pill,
.rank-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.84);
  color: #f3f4f6;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 10px;
}

.meta-pill.orange,
.rank-pill {
  background: linear-gradient(90deg, var(--orange), var(--red));
  color: #ffffff;
}

.score {
  color: var(--gold);
  font-weight: 850;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 16px;
  font-weight: 800;
  padding: 0 22px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

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

.btn-secondary {
  color: #ffffff;
  background: rgba(31, 41, 55, 0.84);
  backdrop-filter: blur(12px);
}

.btn-ghost {
  color: #fdba74;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.25);
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 72px 0;
}

.section.tight {
  padding-top: 36px;
}

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

.section-kicker {
  margin-bottom: 8px;
  color: #fb923c;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  font-weight: 900;
}

.section-desc {
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.scroller {
  overflow-x: auto;
  margin: 0 -16px;
  padding: 0 16px 14px;
  scrollbar-width: thin;
}

.scroll-row {
  display: flex;
  gap: 18px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: 0 18px 45px 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.36);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.38);
}

.movie-card.poster {
  width: 260px;
  flex: 0 0 260px;
}

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

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

.movie-card:hover .poster-frame img {
  transform: scale(1.06);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent 50%);
}

.card-rating {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #facc15;
  font-size: 0.82rem;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.35;
}

.card-text {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.line-two {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.line-three {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

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

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

.category-card,
.search-panel,
.detail-panel,
.rank-item,
.article-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(31, 41, 55, 0.58);
  box-shadow: var(--shadow);
}

.category-card {
  min-height: 180px;
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.38);
  background: rgba(31, 41, 55, 0.88);
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 1.25rem;
  font-weight: 900;
}

.page-hero {
  padding: 68px 0 36px;
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 30rem);
}

.page-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px 180px;
  gap: 14px;
  margin-bottom: 32px;
  padding: 18px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(75, 85, 99, 0.72);
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.88);
  color: #ffffff;
  outline: none;
  padding: 0 14px;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(249, 115, 22, 0.78);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.no-results {
  display: none;
  padding: 28px;
  border-radius: 20px;
  background: rgba(31, 41, 55, 0.72);
  color: var(--muted);
  text-align: center;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 76px 106px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.rank-num {
  color: #fb923c;
  font-size: 2rem;
  font-weight: 950;
  text-align: center;
}

.rank-cover {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: #111827;
}

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

.detail-hero {
  padding: 34px 0 56px;
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 32rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #fdba74;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.18));
  color: #ffffff;
}

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

.play-core {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 24px 60px rgba(249, 115, 22, 0.42);
  font-size: 2rem;
  transform: translateZ(0);
  transition: transform 0.2s ease;
}

.player-overlay:hover .play-core {
  transform: scale(1.08);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  margin-top: 30px;
}

.detail-panel {
  padding: 28px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
}

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

.detail-title {
  margin: 18px 0 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  font-weight: 950;
}

.article-card {
  padding: 26px;
  margin-bottom: 20px;
}

.article-card h2,
.article-card h3 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 900;
}

.article-card p {
  color: #d1d5db;
  line-height: 1.95;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer {
  border-top: 1px solid rgba(31, 41, 55, 0.96);
  background: rgba(3, 7, 18, 0.96);
}

.footer-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-title {
  margin-bottom: 14px;
  color: #ffffff;
  font-weight: 850;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.copyright {
  border-top: 1px solid rgba(31, 41, 55, 0.8);
  padding: 18px 0;
  color: #6b7280;
  text-align: center;
  font-size: 0.88rem;
}

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

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

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

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

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

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

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

  .section-head {
    align-items: start;
    flex-direction: column;
  }

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

  .rank-item {
    grid-template-columns: 52px 82px minmax(0, 1fr);
  }

  .rank-action {
    grid-column: 2 / 4;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-wrap,
  .section-wrap,
  .footer-wrap,
  .mobile-panel {
    width: min(100% - 24px, 1280px);
  }

  .hero-copy {
    padding-top: 72px;
  }

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

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

  .movie-card.poster {
    width: 210px;
    flex-basis: 210px;
  }

  .card-body {
    padding: 12px;
  }

  .detail-panel,
  .article-card {
    padding: 20px;
  }

  .detail-side {
    display: block;
  }

  .player-wrap {
    border-radius: 18px;
  }
}
