:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-soft: #fff7ed;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #ef4444;
  --brand-dark: #dc2626;
  --brand-soft: #fee2e2;
  --orange: #f97316;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --radius: 22px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

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

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--orange));
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.32);
}

.logo-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.top-search,
.mobile-search,
.inline-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.inline-filter input {
  width: 220px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.inline-filter input {
  width: min(540px, 70vw);
}

.top-search input:focus,
.mobile-search input:focus,
.inline-filter input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.top-search button,
.mobile-search button,
.inline-filter button,
.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.mobile-search button,
.btn.primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.25);
}

.inline-filter button,
.btn.secondary {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.btn.full {
  display: block;
  text-align: center;
}

.top-search button:hover,
.mobile-search button:hover,
.inline-filter button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2 0%, #fffbeb 54%, #ffffff 100%);
}

.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 620px;
  padding: 70px 22px 86px;
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.42;
  pointer-events: none;
}

.glow-a {
  left: -120px;
  top: -80px;
  background: #fca5a5;
}

.glow-b {
  right: -110px;
  bottom: -120px;
  background: #fdba74;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 54px;
  align-items: center;
  animation: fadeUp 0.55s ease both;
}

.hero-slide.is-active {
  display: grid;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.hero-copy h1 {
  font-size: clamp(40px, 6vw, 70px);
  max-width: 760px;
}

.hero-copy h2 {
  margin-top: 14px;
  font-size: clamp(24px, 4vw, 44px);
  color: var(--brand);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 14px;
}

.hero-copy p,
.page-hero p,
.section-heading p,
.card-body p,
.detail-article p,
.aside-card p,
.footer-brand p,
.footer-col p,
.category-card-body p {
  color: var(--muted);
}

.hero-copy p {
  margin: 22px 0 0;
  max-width: 680px;
  font-size: 19px;
}

.hero-tags,
.detail-meta,
.card-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.detail-meta span,
.card-meta span,
.tag-list span {
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
}

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

.hero-poster {
  position: relative;
  display: block;
  min-height: 430px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
  background: #111827;
}

.hero-poster img {
  height: 430px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18), transparent);
}

.hero-poster-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  color: #ffffff;
}

.hero-poster-caption span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero-poster-caption strong {
  display: block;
  font-size: 28px;
  line-height: 1.2;
}

.hero-dots {
  position: absolute;
  left: 22px;
  bottom: 42px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fecaca;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--brand);
}

.stats-strip {
  max-width: 1180px;
  margin: -38px auto 0;
  padding: 0 22px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stats-strip a {
  display: block;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.stats-strip strong {
  display: block;
  font-size: 21px;
  color: var(--brand);
}

.stats-strip span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.content-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 68px 22px;
}

.muted-section {
  max-width: none;
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.muted-section > .section-heading,
.muted-section > .movie-grid,
.muted-section > .category-grid {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-heading p {
  margin: 8px 0 0;
}

.section-more,
.text-link {
  color: var(--brand);
  font-weight: 800;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
  aspect-ratio: 16 / 10;
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster::after {
  opacity: 1;
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: var(--brand);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 36px;
  text-align: center;
  padding: 6px 9px;
  background: rgba(17, 24, 39, 0.86);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: block;
  min-height: 1.4em;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.card-body p {
  min-height: 3.2em;
  margin: 8px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
}

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

.tag-list span {
  background: #fff7ed;
  color: #9a3412;
}

.compact-card .card-body p {
  min-height: auto;
}

.category-grid,
.category-list-grid {
  display: grid;
  gap: 22px;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #ffffff;
  box-shadow: var(--shadow);
  background: #111827;
}

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

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.22));
}

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

.category-tile span {
  font-size: 24px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: #f3f4f6;
  font-size: 14px;
}

.page-main {
  background: var(--bg);
}

.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 22px 30px;
}

.compact-hero {
  padding-top: 58px;
}

.page-hero h1 {
  margin: 0;
  max-width: 870px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 18px;
}

.inline-filter {
  margin-top: 26px;
  flex-wrap: wrap;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.category-card-images {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #111827;
}

.category-card-images img {
  height: 150px;
  object-fit: cover;
}

.category-card-body {
  padding: 24px;
}

.category-card-body h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card-body p {
  margin: 0 0 14px;
}

.breadcrumb {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--brand);
  font-weight: 800;
}

.detail-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-article,
.aside-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.player-card {
  overflow: hidden;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #030712;
}

.movie-player,
.player-layer,
.player-layer img {
  width: 100%;
  height: 100%;
}

.movie-player {
  display: block;
  background: #000000;
}

.player-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-layer img {
  object-fit: cover;
  opacity: 0.78;
}

.player-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.80), rgba(0, 0, 0, 0.18));
}

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

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
  box-shadow: 0 22px 46px rgba(239, 68, 68, 0.38);
}

.big-play span {
  position: absolute;
  left: 32px;
  top: 25px;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #ffffff;
}

.detail-article {
  margin-top: 24px;
  padding: 30px;
}

.detail-article h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.lead-text {
  font-size: 18px;
}

.detail-meta,
.detail-tags {
  margin: 16px 0;
}

.detail-article h2 {
  margin: 30px 0 10px;
  font-size: 24px;
}

.detail-aside {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 18px;
}

.aside-card {
  padding: 18px;
}

.aside-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 16px;
}

.aside-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.small-links {
  display: grid;
  gap: 10px;
}

.small-links a {
  color: var(--brand);
  font-weight: 800;
}

.related-section {
  padding-top: 50px;
}

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

.site-footer {
  margin-top: 40px;
  background: #111827;
  color: #d1d5db;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 22px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  color: #ffffff;
}

.footer-brand p {
  margin: 16px 0 0;
}

.footer-col h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 22px;
  color: #9ca3af;
  font-size: 14px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .hero-poster {
    max-width: 560px;
  }

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

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

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

  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }

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

  .hero-inner {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 320px;
    height: 320px;
  }

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

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

  .detail-aside {
    position: static;
  }

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

@media (max-width: 620px) {
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

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

  .hero-inner,
  .content-section,
  .page-hero,
  .breadcrumb,
  .detail-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .stats-strip {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding: 22px 16px 0;
  }

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

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

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

  .inline-filter input {
    width: 100%;
  }

  .inline-filter button {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

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