:root {
  --bg: #f9fafb;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --brand-soft: #fff7ed;
  --accent: #dc2626;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
}

.nav-shell {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
}

.logo-text {
  font-size: 24px;
}

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

.nav-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.25s ease;
}

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

.top-search {
  display: flex;
  align-items: center;
  min-width: 310px;
}

.top-search input,
.mobile-search input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 1px solid #d1d5db;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
  height: 42px;
  padding: 0 14px;
  border-radius: 999px 0 0 999px;
}

.top-search button,
.mobile-search button {
  height: 42px;
  border: 0;
  padding: 0 18px;
  color: #fff;
  background: var(--brand);
  border-radius: 0 999px 999px 0;
  font-weight: 700;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--brand-soft);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--brand);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px;
  background: #fff;
}

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

.mobile-search {
  display: flex;
  margin-bottom: 12px;
}

.mobile-search input {
  height: 42px;
  padding: 0 14px;
  border-radius: 12px 0 0 12px;
}

.mobile-search button {
  border-radius: 0 12px 12px 0;
}

.mobile-link {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #ea580c 0%, #dc2626 58%, #7f1d1d 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to top, var(--bg), rgba(249, 250, 251, 0));
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.48;
}

.hero-glow-one {
  width: 360px;
  height: 360px;
  background: #fdba74;
  top: -110px;
  right: 8%;
}

.hero-glow-two {
  width: 260px;
  height: 260px;
  background: #fecaca;
  bottom: 40px;
  left: 5%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 42px;
  align-items: center;
  min-height: 580px;
  padding: 76px 0 110px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 800;
}

.hero-copy h1,
.sub-hero h1,
.detail-intro h1 {
  margin: 22px 0 18px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p,
.sub-hero p,
.detail-intro p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.75;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-action {
  color: var(--brand);
  background: #fff;
  box-shadow: 0 16px 32px rgba(127, 29, 29, 0.24);
}

.secondary-action {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-quick-links a {
  color: #ffedd5;
  font-weight: 750;
}

.hero-stage {
  position: relative;
  min-height: 440px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.05) 58%, rgba(0, 0, 0, 0.12));
}

.hero-slide-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 32px;
}

.hero-slide-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-slide-tags span,
.movie-tags span,
.detail-tags span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 800;
}

.hero-slide-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.hero-slide-copy h2 {
  margin: 14px 0 8px;
  font-size: 34px;
  font-weight: 900;
}

.hero-slide-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.hero-slide-copy a {
  display: inline-flex;
  margin-top: 18px;
  color: #fff;
  font-weight: 850;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  right: 24px;
  top: 24px;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 28px;
  background: #fff;
}

.floating-feature {
  position: relative;
  z-index: 3;
  margin-top: -58px;
}

.featured-grid,
.movie-grid,
.category-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.content-section {
  padding: 64px 0;
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--brand);
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 700px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.section-more,
.rank-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 850;
}

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

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

.movie-card-small .poster-link {
  aspect-ratio: 16 / 10;
}

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

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

.poster-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 12px;
  font-weight: 850;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
}

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

.movie-title {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.movie-title:hover {
  color: var(--brand);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.movie-tags {
  margin-top: 12px;
}

.category-band {
  background: #fff;
}

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

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

.category-card {
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.category-art {
  position: relative;
  display: block;
  height: 170px;
  overflow: hidden;
}

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

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

.category-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.08));
}

.category-art span {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.category-info {
  padding: 20px;
}

.category-info h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-info p {
  color: var(--muted);
  line-height: 1.7;
}

.category-samples,
.category-row-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-samples a,
.category-row-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 800;
}

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

.category-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
}

.category-row h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-row p {
  color: var(--muted);
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 28px;
  padding-bottom: 70px;
}

.rank-panel,
.side-card,
.filter-card,
.story-card,
.player-card,
.ranking-block {
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.rank-panel {
  position: sticky;
  top: 94px;
  align-self: start;
  padding: 24px;
}

.rank-panel-head,
.ranking-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.rank-panel-head span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}

.rank-panel h2,
.side-card h2,
.story-card h2,
.filter-card h2,
.ranking-title h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.rank-list,
.ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-list li + li,
.ranking-list li + li {
  border-top: 1px solid var(--line);
}

.rank-list a,
.ranking-list a {
  display: flex;
  gap: 12px;
  padding: 13px 0;
}

.rank-list span,
.ranking-list span {
  width: 30px;
  color: var(--brand);
  font-weight: 900;
}

.rank-list strong,
.ranking-list strong {
  display: block;
  font-weight: 850;
}

.rank-list em,
.ranking-list em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.sub-hero {
  color: #fff;
  background: linear-gradient(120deg, #ea580c 0%, #dc2626 60%, #7f1d1d 100%);
  padding: 74px 0 82px;
}

.sub-hero h1 {
  max-width: 900px;
}

.sub-hero p {
  max-width: 760px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

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

.filter-card {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 24px;
  align-items: end;
  padding: 24px;
  margin-bottom: 28px;
}

.filter-card p {
  margin-top: 8px;
  color: var(--muted);
}

.filter-controls {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  height: 44px;
  padding: 0 12px;
  border-radius: 14px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 64px 0 20px;
}

.ranking-block {
  padding: 24px;
}

.ranking-title {
  align-items: start;
  flex-direction: column;
}

.ranking-title p {
  color: var(--muted);
  line-height: 1.6;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 560px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) scale(1.05);
}

.detail-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(17, 24, 39, 0.9), rgba(127, 29, 29, 0.76), rgba(234, 88, 12, 0.68));
}

.detail-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 38px;
  align-items: center;
  padding: 70px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

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

.detail-intro h1 {
  max-width: 860px;
}

.detail-intro p {
  max-width: 840px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  padding: 56px 0 72px;
}

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card {
  padding: 14px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #030712;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 0;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2));
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.45);
  font-size: 30px;
}

.play-overlay strong {
  font-size: 18px;
}

.video-shell.is-playing .play-overlay {
  display: none;
}

.story-card {
  padding: 28px;
}

.story-card p {
  margin-top: 16px;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 20px;
}

.info-list div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  color: var(--muted);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  font-weight: 750;
}

.detail-side {
  min-width: 0;
}

.side-card {
  position: sticky;
  top: 94px;
  padding: 22px;
}

.side-card-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.side-card-list .movie-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  border-radius: 18px;
}

.side-card-list .poster-link {
  aspect-ratio: 2 / 3;
}

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

.side-card-list .movie-title {
  font-size: 15px;
}

.side-card-list .movie-card-body p,
.side-card-list .movie-tags {
  display: none;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr;
  gap: 34px;
  padding: 54px 0;
}

.footer-logo {
  margin-bottom: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  color: #9ca3af;
  line-height: 1.75;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-movie-card].is-hidden {
  display: none;
}

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

  .main-nav {
    margin-left: auto;
  }

  .hero-inner,
  .split-section,
  .detail-layout,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

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

  .rank-panel,
  .side-card {
    position: static;
  }

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

  .filter-card {
    grid-template-columns: 1fr;
  }
}

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

  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .logo-text {
    font-size: 20px;
  }

  .hero-inner {
    min-height: auto;
    padding: 54px 0 96px;
  }

  .hero-copy p,
  .sub-hero p,
  .detail-intro p {
    font-size: 17px;
  }

  .featured-grid,
  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-grid-full,
  .footer-grid,
  .detail-hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-hero-grid {
    align-items: start;
  }

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

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

  .filter-controls {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1200px);
  }

  .hero-copy h1,
  .sub-hero h1,
  .detail-intro h1 {
    font-size: 36px;
  }

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

  .hero-slide-copy {
    padding: 22px;
  }

  .hero-slide-copy h2 {
    font-size: 26px;
  }

  .featured-grid,
  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-grid-full,
  .footer-grid,
  .detail-hero-grid,
  .filter-controls {
    grid-template-columns: 1fr;
  }

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

  .floating-feature {
    margin-top: -38px;
  }

  .detail-layout {
    padding-top: 34px;
  }

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

  .side-card-list .movie-card {
    grid-template-columns: 100px 1fr;
  }
}
