:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.25);
  --red: #dc2626;
  --orange: #f97316;
  --gold: #facc15;
  --card: #ffffff;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(254, 215, 170, 0.7),
      transparent 36rem
    ),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

img {
  background: linear-gradient(135deg, #fee2e2, #fed7aa);
}

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

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 76px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #991b1b;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.25);
}

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

.nav-toggle {
  display: none;
  margin-left: auto;
  color: #991b1b;
  font-size: 26px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: #475569;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.2);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: min(330px, 32vw);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 999px;
  background: #fff7ed;
  overflow: hidden;
}

.header-search input,
.search-page-form input,
.page-filter-input {
  width: 100%;
  outline: none;
  background: transparent;
  color: var(--text);
}

.header-search input {
  padding: 10px 14px;
}

.header-search button,
.search-page-form button {
  color: white;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 800;
  padding: 10px 18px;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 680px;
  color: white;
  overflow: hidden;
  background: #450a0a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: 54px;
  width: 100%;
  padding: 92px max(22px, calc((100vw - 1240px) / 2)) 120px;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(250, 204, 21, 0.2),
      transparent 28rem
    ),
    linear-gradient(
      120deg,
      rgba(69, 10, 10, 0.95),
      rgba(124, 45, 18, 0.86) 54%,
      rgba(15, 23, 42, 0.78)
    );
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(1.1) blur(1px);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(69, 10, 10, 0.95),
    rgba(69, 10, 10, 0.45),
    rgba(15, 23, 42, 0.4)
  );
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(250, 204, 21, 0.38);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  font-size: clamp(38px, 7vw, 82px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 650px;
  margin-top: 24px;
  color: #fee2e2;
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.75;
}

.hero-tags,
.tag-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.28);
}

.btn-ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.btn:hover,
.category-tile:hover,
.movie-card:hover,
.ranking-row:hover,
.compact-card:hover {
  transform: translateY(-4px);
}

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

.hero-dot {
  width: 44px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.active {
  background: #facc15;
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 78px 22px;
}

.section-overlap {
  position: relative;
  z-index: 10;
  margin-top: -74px;
  padding-top: 0;
  padding-bottom: 30px;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.stats-panel a {
  min-height: 112px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  color: var(--text);
}

.stats-panel strong {
  display: block;
  color: var(--red);
  font-size: 34px;
  line-height: 1;
}

.stats-panel span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-weight: 800;
}

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

.section-heading span {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-weight: 900;
}

.section-heading h2 {
  color: #111827;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading a,
.filter-bar a {
  color: var(--red);
  font-weight: 900;
}

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

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

.movie-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: 0.22s ease;
}

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

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

.movie-card:hover img,
.compact-card:hover img,
.ranking-row:hover img {
  transform: scale(1.07);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.68), transparent 60%);
}

.region-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(220, 38, 38, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge + .region-badge {
  top: 48px;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: rgba(249, 115, 22, 0.92);
}

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

.movie-card h3 {
  min-height: 2.8em;
  color: #111827;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card h3 a:hover,
.ranking-row h3 a:hover {
  color: var(--red);
}

.movie-card p,
.ranking-row p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.tag-row {
  margin-top: 12px;
}

.warm-section {
  max-width: none;
  background: linear-gradient(135deg, #fff7ed, #fee2e2);
}

.warm-section > .section-heading,
.warm-section > .ranking-list,
.warm-section > .strip-grid {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 76px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: 0.2s ease;
}

.ranking-no {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #991b1b;
  background: #ffedd5;
  font-size: 22px;
  font-weight: 950;
}

.ranking-poster {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
}

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

.ranking-row h3 {
  font-size: 20px;
  font-weight: 950;
}

.play-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 40px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(248, 113, 113, 0.26);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #7f1d1d, #c2410c);
  color: white;
  box-shadow: var(--shadow);
  transition: 0.22s ease;
}

.category-name {
  position: relative;
  z-index: 2;
  display: block;
  font-size: 24px;
  font-weight: 950;
}

.category-desc {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 10px;
  color: #fed7aa;
  font-weight: 800;
}

.category-stack {
  position: absolute;
  right: -20px;
  bottom: -20px;
  display: flex;
  opacity: 0.65;
}

.category-stack img {
  width: 76px;
  height: 108px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  margin-left: -38px;
  transform: rotate(-8deg);
}

.page-hero {
  min-height: 360px;
  padding: 96px max(22px, calc((100vw - 1240px) / 2));
  color: white;
  background:
    radial-gradient(
      circle at 18% 30%,
      rgba(250, 204, 21, 0.16),
      transparent 26rem
    ),
    linear-gradient(135deg, #450a0a, #991b1b 52%, #c2410c);
}

.page-hero p {
  max-width: 760px;
  margin-top: 18px;
  color: #fee2e2;
  font-size: 20px;
  line-height: 1.75;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.page-filter-input,
.search-page-form input {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(248, 113, 113, 0.32);
  border-radius: 18px;
  background: white;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

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

.compact-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: 0.2s ease;
}

.compact-card img {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
}

.compact-card strong {
  display: block;
  font-weight: 950;
  line-height: 1.4;
}

.compact-card em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

.pager a,
.pager span,
.pager strong {
  min-width: 96px;
  padding: 12px 18px;
  border-radius: 999px;
  text-align: center;
  background: white;
  color: #991b1b;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.pager span {
  color: #94a3b8;
}

.search-page-form {
  display: flex;
  max-width: 820px;
  margin: 0 auto 34px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.search-page-form input {
  border-radius: 22px 0 0 22px;
}

.search-page-form button {
  min-width: 112px;
}

.breadcrumb {
  max-width: 1240px;
  margin: 28px auto 0;
  padding: 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #64748b;
  font-weight: 800;
}

.breadcrumb a {
  color: #dc2626;
}

.detail-hero {
  max-width: 1240px;
  margin: 30px auto 0;
  padding: 38px 22px 54px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  color: #111827;
  font-size: clamp(36px, 5vw, 64px);
}

.detail-one-line {
  max-width: 780px;
  margin-top: 20px;
  color: #475569;
  font-size: 20px;
  line-height: 1.75;
}

.detail-info .detail-meta,
.detail-tags {
  margin-top: 18px;
}

.detail-info .btn {
  margin-top: 28px;
}

.player-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 60px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 16px;
  color: white;
  background: linear-gradient(
    135deg,
    rgba(69, 10, 10, 0.42),
    rgba(15, 23, 42, 0.52)
  );
  text-align: center;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 16px 38px rgba(220, 38, 38, 0.36);
  font-size: 32px;
}

.player-overlay strong {
  font-size: 22px;
  font-weight: 950;
}

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  padding-top: 20px;
}

.content-card,
.content-side {
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.content-card h2,
.content-side h2 {
  margin-bottom: 16px;
  color: #111827;
  font-size: 24px;
  font-weight: 950;
}

.content-card h2:not(:first-child) {
  margin-top: 28px;
}

.content-card p {
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

.content-side dl {
  display: grid;
  gap: 14px;
}

.content-side dl div {
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.content-side dt {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 900;
}

.content-side dd {
  margin-top: 4px;
  color: #334155;
  font-weight: 900;
}

.site-footer {
  margin-top: 46px;
  color: #fee2e2;
  background: linear-gradient(135deg, #450a0a, #7f1d1d);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 22px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  color: white;
  font-size: 22px;
}

.footer-inner p {
  margin-top: 10px;
  color: #fecaca;
}

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

.footer-links a {
  color: #fed7aa;
  font-weight: 900;
}

.hidden-card {
  display: none !important;
}

.empty-results {
  grid-column: 1 / -1;
  padding: 42px;
  border-radius: var(--radius);
  text-align: center;
  background: white;
  color: #64748b;
  font-weight: 900;
}

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

  .hero-slide,
  .detail-hero,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 68px;
  }

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

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-link {
    text-align: center;
  }

  .hero {
    min-height: 620px;
  }

  .hero-slide {
    display: block;
    padding: 86px 22px 118px;
  }

  .hero h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .stats-panel,
  .category-grid,
  .movie-grid,
  .compact-grid,
  .category-movie-grid,
  .strip-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 18px;
  }

  .section-heading,
  .filter-bar,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .ranking-row {
    grid-template-columns: 48px 70px minmax(0, 1fr);
  }

  .ranking-no {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .play-now {
    grid-column: 1 / -1;
  }

  .detail-hero {
    padding-top: 24px;
  }

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

  .content-card,
  .content-side {
    padding: 22px;
  }

  .search-page-form {
    flex-direction: column;
    border-radius: 22px;
  }

  .search-page-form input {
    border-radius: 22px 22px 0 0;
  }
}
