:root {
  --bg: #0f172a;
  --bg-deep: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --card: #111827;
  --soft: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --faint: #94a3b8;
  --orange: #f97316;
  --red: #dc2626;
  --amber: #fb923c;
  --radius: 24px;
  --shadow: 0 25px 55px rgba(2, 6, 23, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.14), transparent 32rem),
    radial-gradient(circle at top right, rgba(220, 38, 38, 0.11), transparent 28rem),
    linear-gradient(180deg, #0f172a 0%, #020617 48%, #0f172a 100%);
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.footer-logo span {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

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

.brand-text em {
  color: var(--faint);
  font-style: normal;
  font-size: 12px;
}

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

.nav-link,
.mobile-nav-link {
  color: var(--muted);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--amber);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.95);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.97);
}

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

main {
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: 58px 0 46px;
  overflow: hidden;
}

.hero-stage,
.hero-bottom,
.hero-mini-list,
.section,
.page-hero,
.detail-wrap {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-stage {
  position: relative;
  min-height: 600px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0b1120;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.62fr);
  align-items: center;
  gap: 34px;
  padding: clamp(28px, 5vw, 68px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.24;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(7px) saturate(1.15);
  transform: scale(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.68), rgba(2, 6, 23, 0.35)),
    radial-gradient(circle at 28% 42%, rgba(249, 115, 22, 0.3), transparent 34rem);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-heading span,
.page-hero span,
.rank-copy span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(251, 146, 60, 0.38);
  font-size: 13px;
  font-weight: 800;
}

.hero-content h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero-content p,
.page-hero p,
.section-heading p,
.rank-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.hero-search button {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.24);
}

.primary-button:hover,
.hero-search button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 42px rgba(249, 115, 22, 0.32);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.hero-poster {
  display: block;
  justify-self: end;
  width: min(360px, 100%);
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  transform: rotate(2deg);
}

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

.hero-poster span,
.play-chip {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 13px;
  font-weight: 900;
}

.hero-poster:hover img,
.movie-card:hover .card-poster img,
.category-tile:hover img,
.feature-card:hover img {
  transform: scale(1.06);
}

.hero-bottom {
  display: grid;
  grid-template-columns: auto minmax(280px, 520px);
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(148, 163, 184, 0.45);
}

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

.hero-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 6, 23, 0.58);
  outline: none;
  padding: 0 16px;
}

.hero-search input::placeholder,
.filter-panel input::placeholder {
  color: #94a3b8;
}

.hero-mini-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.hero-mini {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid var(--line);
}

.hero-mini img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-mini span {
  color: #e5e7eb;
  font-weight: 800;
  line-height: 1.35;
}

.hero-orb {
  position: absolute;
  z-index: 0;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.22;
}

.hero-orb-one {
  left: -110px;
  top: 120px;
  background: #f97316;
}

.hero-orb-two {
  right: -100px;
  bottom: 80px;
  background: #dc2626;
}

.section {
  padding: 76px 0;
}

.section-dark {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 32px;
  max-width: 780px;
}

.section-heading.with-action {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.section-heading h2,
.page-hero h1,
.rank-copy h2,
.detail-info h1 {
  margin: 16px 0 10px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.text-link {
  color: #fdba74;
  font-weight: 900;
}

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

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

.category-tile {
  position: relative;
  min-height: 270px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111827;
  border: 1px solid var(--line);
  box-shadow: 0 22px 40px rgba(2, 6, 23, 0.28);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
}

.category-tile strong,
.category-tile p,
.category-tile em {
  position: relative;
  z-index: 1;
}

.category-tile strong {
  font-size: 24px;
}

.category-tile p {
  color: var(--muted);
  line-height: 1.7;
  min-height: 76px;
}

.category-tile em {
  color: #fdba74;
  font-style: normal;
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 146, 60, 0.5);
  box-shadow: 0 28px 54px rgba(2, 6, 23, 0.34);
}

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

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

.rank-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 18px;
}

.card-meta {
  margin-bottom: 10px;
}

.card-body h2 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: #fdba74;
}

.card-body p {
  min-height: 70px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

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

.tag-list span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(251, 146, 60, 0.2);
  font-size: 12px;
  font-weight: 800;
}

.rank-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.4fr;
  gap: 36px;
  align-items: start;
}

.rank-copy {
  position: sticky;
  top: 96px;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.18), rgba(220, 38, 38, 0.08)), rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(251, 146, 60, 0.28);
}

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

.page-hero {
  position: relative;
  margin-top: 34px;
  padding: 62px;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.24), transparent 26rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.8));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.compact-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
}

.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.8fr);
  gap: 34px;
  align-items: center;
}

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

.feature-card {
  overflow: hidden;
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid var(--line);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.feature-card strong,
.feature-card span {
  display: block;
  padding: 0 14px;
}

.feature-card strong {
  padding-top: 12px;
  line-height: 1.35;
}

.feature-card span {
  padding-bottom: 14px;
  color: var(--faint);
  font-size: 13px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 190px;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 800;
}

.empty-state {
  display: none;
  margin-top: 28px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.74);
}

.empty-state.is-visible {
  display: block;
}

.detail-hero {
  position: relative;
  padding: 76px 0 62px;
  overflow: hidden;
}

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

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(9px) saturate(1.05);
  transform: scale(1.08);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.48), #020617 96%);
}

.detail-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

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

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

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

.lead {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.detail-tags {
  margin: 20px 0 22px;
}

.player-section {
  padding-top: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.78)),
    rgba(15, 23, 42, 0.16);
}

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

.big-play {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.34);
  font-size: 28px;
}

.player-cover strong {
  font-size: clamp(24px, 4vw, 42px);
}

.player-cover em {
  color: #fed7aa;
  font-style: normal;
  font-weight: 800;
}

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

.article-card {
  padding: 28px;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid var(--line);
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.96));
}

.footer-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.65fr 0.65fr;
  gap: 36px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
}

.footer-brand p,
.footer-column a {
  color: var(--muted);
  line-height: 1.8;
}

.footer-column h2 {
  font-size: 18px;
  margin: 0 0 14px;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

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

@media (max-width: 1100px) {
  .movie-grid,
  .category-grid.large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-slide,
  .rank-layout,
  .category-hero {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 760px;
  }

  .hero-poster {
    justify-self: start;
    width: min(300px, 100%);
  }

  .rank-copy {
    position: relative;
    top: auto;
  }
}

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

  .menu-button {
    display: block;
  }

  .brand-text em {
    display: none;
  }

  .hero-slider {
    min-height: auto;
    padding-top: 26px;
  }

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

  .hero-slide {
    padding: 28px;
  }

  .hero-bottom,
  .filter-panel,
  .detail-wrap,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-search {
    border-radius: 24px;
    align-items: stretch;
    flex-direction: column;
  }

  .hero-mini-list,
  .feature-row,
  .movie-grid,
  .category-grid,
  .category-grid.large,
  .rank-list,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .page-hero {
    padding: 46px 0;
  }

  .page-hero {
    width: min(100% - 32px, 1220px);
    padding: 34px 24px;
  }

  .section-heading.with-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .player-shell {
    border-radius: 22px;
  }
}
