:root {
  --mp-bg: #05070c;
  --mp-panel: #0c111c;
  --mp-panel-soft: #111827;
  --mp-text: #f6f8ff;
  --mp-muted: #a9b2c6;
  --mp-line: rgba(255, 255, 255, 0.1);
  --mp-blue: #1f78ff;
  --mp-blue-soft: rgba(31, 120, 255, 0.15);
  --mp-gold: #d7a33d;
  --mp-gold-soft: rgba(215, 163, 61, 0.16);
  --mp-danger: #ff4f6d;
  --mp-radius: 8px;
  --mp-shadow: 0 18px 55px rgba(0, 0, 0, 0.38);
  --mp-container: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mp-bg);
  color: var(--mp-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
body.menu-is-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--mp-gold); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--mp-gold);
  color: #05070c;
}
.site-container { width: var(--mp-container); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--mp-line);
  transition: background .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { background: rgba(5, 7, 12, 0.96); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.site-header__inner {
  width: var(--mp-container);
  min-height: 74px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr minmax(230px, 320px);
  gap: 24px;
  align-items: center;
}
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: 0; }
.site-brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #05070c;
  background: var(--mp-gold);
  box-shadow: 0 0 0 3px rgba(215,163,61,.14);
}
.site-brand__text { font-size: 1.2rem; color: var(--mp-text); white-space: nowrap; }
.site-brand__text span { color: var(--mp-blue); }
.primary-navigation .menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-navigation a {
  display: inline-flex;
  padding: 10px 13px;
  border-radius: 8px;
  color: var(--mp-muted);
  font-weight: 700;
  font-size: .94rem;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
  background: var(--mp-blue-soft);
  color: var(--mp-text);
}
.icon-button,
.search-submit {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.menu-toggle { display: none; width: 42px; height: 42px; background: var(--mp-panel-soft); padding: 11px; }
.menu-toggle span:not(.screen-reader-text) { display: block; height: 2px; margin: 5px 0; background: var(--mp-text); border-radius: 2px; }
.search-form { display: flex; align-items: center; gap: 8px; }
.search-form label { flex: 1; }
.search-field {
  width: 100%;
  height: 42px;
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: var(--mp-text);
  padding: 0 12px;
  outline: none;
}
.search-field:focus { border-color: var(--mp-blue); box-shadow: 0 0 0 3px rgba(31,120,255,.18); }
.search-submit { width: 42px; height: 42px; background: var(--mp-blue); color: #fff; font-size: 1.15rem; }
.hero {
  min-height: 590px;
  display: flex;
  align-items: end;
  background-color: #070a12;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--mp-line);
}
.hero__content {
  width: var(--mp-container);
  margin: 0 auto;
  padding: 112px 0 74px;
  max-width: 760px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mp-gold-soft);
  color: var(--mp-gold);
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}
.hero h1,
.archive-header h1,
.detail-copy h1,
.entry-header h1 {
  margin: 16px 0 14px;
  color: var(--mp-text);
  line-height: 1.04;
  font-weight: 900;
}
.hero h1 { font-size: clamp(2.4rem, 7vw, 5.8rem); max-width: 860px; }
.hero p { max-width: 650px; color: var(--mp-muted); font-size: 1.07rem; }
.hero__actions,
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 850;
}
.button--primary { background: var(--mp-blue); color: #fff; box-shadow: 0 14px 34px rgba(31,120,255,.28); }
.button--primary:hover { color: #fff; background: #2f84ff; }
.button--ghost { border-color: rgba(215,163,61,.5); color: var(--mp-gold); background: rgba(215,163,61,.09); }
.button--quiet { border-color: var(--mp-line); color: var(--mp-text); background: rgba(255,255,255,.05); }
.notice-strip {
  border-block: 1px solid var(--mp-line);
  background: #080d16;
  color: var(--mp-muted);
  text-align: center;
  padding: 12px 20px;
  font-weight: 700;
}
.filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 28px 0 8px;
  scrollbar-width: thin;
}
.filter-bar a,
.term-chips a,
.meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--mp-line);
  background: rgba(255,255,255,.045);
  color: var(--mp-muted);
  padding: 5px 10px;
  font-size: .82rem;
  font-weight: 750;
}
.filter-bar a:hover,
.term-chips a:hover { border-color: var(--mp-gold); color: var(--mp-gold); }
.content-section { padding: 34px 0 8px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.section-heading h2 { margin: 0; font-size: 1.45rem; line-height: 1.15; }
.section-heading__link { color: var(--mp-gold); font-weight: 800; font-size: .92rem; }
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 18px;
}
.poster-grid--rail { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.movie-card { min-width: 0; }
.movie-card__poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--mp-radius);
  aspect-ratio: 2 / 3;
  background: var(--mp-panel-soft);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--mp-shadow);
}
.movie-card__poster img,
.poster-placeholder { width: 100%; height: 100%; object-fit: cover; }
.movie-card__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.72) 100%);
  opacity: .85;
  transition: opacity .2s ease;
}
.movie-card:hover .movie-card__poster::after { opacity: .55; }
.poster-placeholder { display: grid; place-items: center; background: #0f1725; color: var(--mp-gold); font-size: 3rem; font-weight: 900; }
.movie-card__badge,
.movie-card__rating {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  padding: 4px 8px;
}
.movie-card__badge { top: 10px; left: 10px; background: var(--mp-blue); color: #fff; }
.movie-card__rating { right: 10px; bottom: 10px; background: var(--mp-gold); color: #05070c; }
.movie-card__body { padding-top: 10px; }
.movie-card h3 { margin: 0 0 8px; font-size: .98rem; line-height: 1.25; }
.movie-card h3 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta-pills { display: flex; gap: 7px; flex-wrap: wrap; }
.movie-card .meta-pills span { min-height: 24px; padding: 3px 7px; font-size: .72rem; }
.page-shell { padding-block: 58px; }
.archive-header { max-width: 760px; margin-bottom: 28px; }
.archive-header h1 { font-size: clamp(2rem, 4.8vw, 4rem); }
.archive-header p { color: var(--mp-muted); }
.detail-hero {
  min-height: 560px;
  display: flex;
  align-items: end;
  background-color: #080c14;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--mp-line);
}
.detail-hero__inner {
  display: grid;
  grid-template-columns: minmax(170px, 280px) minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  padding: 96px 0 62px;
}
.detail-poster { border-radius: var(--mp-radius); overflow: hidden; box-shadow: var(--mp-shadow); border: 1px solid rgba(255,255,255,.1); }
.detail-poster img, .detail-poster .poster-placeholder { aspect-ratio: 2 / 3; object-fit: cover; }
.detail-copy h1 { font-size: clamp(2.1rem, 5vw, 4.7rem); }
.term-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 34px; padding-block: 44px; }
.detail-content,
.detail-sidebar,
.article-card,
.empty-state,
.comments-area,
.single-post,
.page-content {
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  background: rgba(255,255,255,.035);
}
.detail-content,
.detail-sidebar,
.empty-state,
.single-post,
.page-content { padding: 26px; }
.detail-content h2,
.detail-sidebar h2 { margin-top: 0; }
.detail-sidebar dl { margin: 0; display: grid; gap: 12px; }
.detail-sidebar dl div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--mp-line); padding-bottom: 10px; }
.detail-sidebar dt { color: var(--mp-muted); }
.detail-sidebar dd { margin: 0; font-weight: 800; }
.post-list { display: grid; gap: 18px; }
.article-card { display: grid; grid-template-columns: 240px 1fr; overflow: hidden; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: 24px; }
.article-card h2 { margin: 10px 0; }
.entry-content { color: #dce3f5; }
.entry-content a { color: var(--mp-gold); text-decoration: underline; text-underline-offset: 3px; }
.entry-media { margin: 20px 0; border-radius: var(--mp-radius); overflow: hidden; }
.empty-state { text-align: center; max-width: 720px; margin: 0 auto; }
.empty-state .search-form { max-width: 480px; margin: 22px auto 0; }
.nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.nav-links a,
.nav-links span { padding: 9px 12px; border-radius: 8px; border: 1px solid var(--mp-line); color: var(--mp-muted); }
.nav-links .current { background: var(--mp-blue); color: #fff; border-color: var(--mp-blue); }
.comments-area { margin-block: 30px; padding: 26px; }
.comment-list { color: var(--mp-muted); }
.site-footer { margin-top: 58px; border-top: 1px solid var(--mp-line); background: #070a12; }
.site-footer__inner {
  width: var(--mp-container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 2fr auto;
  gap: 28px;
  padding: 34px 0;
}
.site-footer p { color: var(--mp-muted); margin-bottom: 0; }
.site-footer__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.footer-widget__title { margin-top: 0; font-size: 1rem; }
.footer-navigation .menu { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; }
.site-footer__bottom { border-top: 1px solid var(--mp-line); text-align: center; padding: 14px 20px; color: var(--mp-muted); font-size: .9rem; }
@media (max-width: 920px) {
  :root { --mp-container: min(100vw - 28px, 1180px); }
  .site-header__inner { grid-template-columns: auto auto; justify-content: space-between; gap: 12px; min-height: 68px; }
  .menu-toggle { display: block; }
  .primary-navigation {
    position: fixed;
    inset: 68px 0 auto 0;
    display: none;
    padding: 16px;
    background: rgba(5,7,12,.98);
    border-bottom: 1px solid var(--mp-line);
  }
  .primary-navigation.is-open { display: block; }
  .primary-navigation .menu { display: grid; justify-content: stretch; }
  .primary-navigation a { width: 100%; }
  .header-search { grid-column: 1 / -1; width: 100%; padding-bottom: 12px; }
  .hero { min-height: 520px; }
  .detail-hero__inner { grid-template-columns: 150px 1fr; gap: 20px; }
  .detail-layout { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .site-brand__text { font-size: 1.05rem; }
  .hero__content { padding: 88px 0 48px; }
  .hero h1 { font-size: 2.55rem; }
  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .detail-hero__inner { grid-template-columns: 1fr; padding-top: 78px; }
  .detail-poster { width: min(220px, 75vw); }
  .detail-copy h1 { font-size: 2.35rem; }
  .article-card { grid-template-columns: 1fr; }
  .detail-content, .detail-sidebar, .empty-state, .single-post, .page-content { padding: 20px; }
}
