:root {
  --color-red: #dc2626;
  --color-red-dark: #7f1d1d;
  --color-orange: #ea580c;
  --color-amber: #f59e0b;
  --color-bg: #f9fafb;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 1.25rem;
  --radius-lg: 0.9rem;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.navbar {
  max-width: var(--max-width);
  height: 4rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  color: #fff;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange));
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.28);
}

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

.brand-text strong {
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.brand-text em {
  margin-top: 0.18rem;
  color: var(--color-muted);
  font-size: 0.75rem;
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link,
.mobile-link {
  border-radius: 0.75rem;
  color: #374151;
  font-size: 0.94rem;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link {
  padding: 0.62rem 1rem;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--color-red);
  background: #fff1f2;
}

.mobile-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.8rem;
  background: #fff1f2;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
}

.mobile-toggle span {
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: var(--color-red-dark);
}

.mobile-panel {
  display: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem 1rem;
}

.mobile-link {
  display: block;
  padding: 0.85rem 1rem;
}

.hero-section {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #7f1d1d 0%, #9a3412 48%, #b45309 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(circle at 18px 18px, rgba(255, 255, 255, 0.38) 0 2px, transparent 2px);
  background-size: 60px 60px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  min-height: 600px;
  margin: 0 auto;
  padding: 4.5rem 1rem;
  display: flex;
  align-items: center;
}

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

.eyebrow {
  margin: 0 0 1rem;
  color: #fde68a;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero-copy h1 span {
  color: #fcd34d;
}

.hero-description {
  max-width: 760px;
  margin: 1.5rem 0 0;
  color: #f3f4f6;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.hero-actions,
.page-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  padding: 0.75rem 1.4rem;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

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

.btn-light {
  color: var(--color-red-dark);
  background: #fff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.btn-light:hover {
  background: #fffbeb;
}

.btn-outline {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.92);
}

.btn-outline:hover {
  color: var(--color-red-dark);
  background: #fff;
}

.hero-feature-links {
  width: min(100%, 960px);
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-mini {
  min-height: 8.2rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, background 180ms ease;
}

.hero-mini:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.2);
}

.hero-mini span {
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-mini strong {
  margin-top: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.hero-mini em {
  margin-top: 0.5rem;
  color: #f3f4f6;
  font-size: 0.85rem;
  font-style: normal;
  line-height: 1.45;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #7f1d1d 0%, #9a3412 55%, #b45309 100%);
}

.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.20), transparent 32%), rgba(0, 0, 0, 0.24);
}

.page-hero-inner,
.detail-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1rem;
}

.page-hero p,
.detail-hero p {
  max-width: 820px;
  margin: 1rem 0 0;
  color: #f3f4f6;
  font-size: 1.08rem;
  line-height: 1.8;
}

.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1rem;
}

.soft-section {
  max-width: none;
  background: #fff;
}

.soft-section > .section-heading,
.soft-section > .movie-grid,
.soft-section > .ranking-grid {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.8rem, 4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0.45rem 0 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.section-more {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  color: var(--color-red);
  background: #fff1f2;
  font-weight: 800;
}

.movie-grid,
.featured-grid,
.category-grid,
.category-overview-grid,
.ranking-grid,
.related-grid {
  display: grid;
  gap: 1.5rem;
}

.movie-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

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

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.category-overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.related-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fecaca;
  box-shadow: var(--shadow-soft);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, #991b1b, #f59e0b);
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms ease;
}

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

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

.poster-badge {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: #fff;
  background: rgba(220, 38, 38, 0.92);
  font-size: 0.76rem;
  font-weight: 800;
}

.movie-card-body {
  padding: 1rem;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.movie-meta span {
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  background: #f3f4f6;
}

.movie-card h3 {
  margin: 0.7rem 0 0;
  color: #111827;
  font-size: 1.08rem;
  line-height: 1.45;
  font-weight: 850;
}

.movie-card h3 a:hover,
.ranking-info h3 a:hover,
.category-preview a:hover,
.breadcrumb a:hover {
  color: var(--color-red);
}

.movie-card p {
  min-height: 3.15rem;
  margin: 0.55rem 0 0;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.tag-row span,
.detail-tags a {
  border-radius: 999px;
  padding: 0.25rem 0.58rem;
  color: #b91c1c;
  background: #fff1f2;
  font-size: 0.75rem;
  font-weight: 750;
}

.category-card,
.category-overview-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.category-main {
  min-height: 9rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, #7f1d1d, #ea580c 62%, #f59e0b);
}

.category-main span {
  width: fit-content;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
}

.category-main strong {
  max-width: 32rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

.category-preview {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.25rem 1.25rem;
}

.category-preview a {
  color: #374151;
  font-weight: 700;
  line-height: 1.45;
}

.ranking-list {
  display: grid;
  gap: 1rem;
}

.ranking-row {
  display: grid;
  grid-template-columns: 4rem 5.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 0.85rem;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.ranking-row.compact {
  grid-template-columns: 3rem 4.5rem minmax(0, 1fr);
}

.ranking-rank {
  display: grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange));
  font-weight: 900;
}

.ranking-thumb {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0.8rem;
  background: #fee2e2;
}

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

.ranking-info h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.ranking-info p {
  margin: 0.35rem 0 0.65rem;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.6;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
  color: #fef3c7;
  font-weight: 700;
}

.breadcrumb strong {
  color: #fff;
}

.detail-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1rem 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 0;
  color: #fff;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 200ms ease, visibility 200ms ease;
}

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

.play-icon {
  width: 4.6rem;
  height: 4.6rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 0.18rem;
  color: var(--color-red-dark);
  background: rgba(255, 255, 255, 0.94);
  font-size: 1.8rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.play-title {
  max-width: 80%;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.detail-card,
.side-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 0.9rem;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.detail-card p {
  margin: 0;
  color: #374151;
  font-size: 1.02rem;
  line-height: 1.9;
}

.detail-side {
  position: sticky;
  top: 5.2rem;
}

.poster-card {
  overflow: hidden;
  padding: 0;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.info-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
}

.info-list dt {
  color: var(--color-muted);
  font-size: 0.88rem;
}

.info-list dd {
  margin: 0;
  color: #111827;
  font-weight: 750;
  line-height: 1.55;
}

.search-box {
  max-width: 680px;
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 1rem;
  padding: 0.55rem 0.75rem 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.search-box span {
  color: #fff;
  font-weight: 850;
}

.search-box input {
  width: 100%;
  min-height: 2.7rem;
  border: 0;
  outline: 0;
  border-radius: 0.8rem;
  padding: 0 1rem;
  color: #111827;
  background: #fff;
  font: inherit;
}

.site-footer {
  margin-top: 3rem;
  background: #111827;
  color: #d1d5db;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.6fr) minmax(220px, 0.8fr);
  gap: 2rem;
}

.footer-brand {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.footer-inner p {
  max-width: 520px;
  margin: 0.8rem 0 0;
  color: #9ca3af;
  line-height: 1.75;
}

.footer-links,
.footer-tags {
  display: grid;
  gap: 0.7rem;
}

.footer-links a,
.footer-tags a {
  color: #d1d5db;
  font-weight: 700;
}

.footer-links a:hover,
.footer-tags a:hover {
  color: #fcd34d;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .featured-grid,
  .ranking-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .detail-side {
    position: static;
  }
}

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

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

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

  .hero-section,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 3.5rem 1rem;
  }

  .hero-feature-links,
  .featured-grid,
  .ranking-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .ranking-row,
  .ranking-row.compact {
    grid-template-columns: 3rem 4.4rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .ranking-info p {
    display: none;
  }

  .detail-hero-inner,
  .page-hero-inner {
    padding: 3rem 1rem;
  }
}

@media (max-width: 520px) {
  .brand-text em {
    display: none;
  }

  .hero-actions,
  .page-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .content-section {
    padding: 3rem 1rem;
  }
}
