/* ═══════════════════════════════════════════════════════════
   MOVIERULZSPOST — MAIN STYLESHEET
   Editorial white-magazine design.
   Zero external font requests — premium system font stack.
   Iowan Old Style (Apple) + Palatino (Windows) for headings.
   system-ui / Segoe UI / Roboto for UI & body.
═══════════════════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ──────────────────────────────────── */
:root {
  --clr-bg:        #ffffff;
  --clr-surface:   #f8f8f8;
  --clr-border:    #e4e4e4;
  --clr-text:      #111111;
  --clr-muted:     #6b6b6b;
  --clr-primary:   #c00;        /* editorial red */
  --clr-primary-d: #990000;
  --clr-star:      #f5a623;

  /*
   * SERIF — editorial headlines & article titles
   * Priority order:
   *   1. Iowan Old Style  — all Apple devices (iOS + macOS). Used by Apple Books.
   *                         High contrast, elegant, publication-grade.
   *   2. Palatino Linotype — Windows. Hermann Zapf original. Refined & editorial.
   *   3. URW Palladio L / P052 — Linux (open-source Palatino clone).
   *   4. Book Antiqua — older Windows. Comfortable fallback.
   *   5. Georgia — universal last resort. Still respectable.
   * Result: looks like a premium paid font on 60 %+ of Indian users
   *         (Android + iOS combined), without any font file download.
   */
  --ff-serif: 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L',
              P052, Palatino, 'Book Antiqua', Georgia, serif;

  /*
   * SANS — navigation, UI chrome, meta, body copy
   * system-ui renders natively on every OS with zero download:
   *   SF Pro on Apple  •  Segoe UI on Windows  •  Roboto on Android
   * BlinkMacSystemFont = Chrome on macOS pre-SF-Pro.
   */
  --ff-sans:  system-ui, -apple-system, BlinkMacSystemFont,
              'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --ff-mono:  'Courier New', Courier, monospace;
  --radius:    10px;
  --radius-lg: 14px;   /* hero panels — more confident, more premium */

  /*
   * Three-tier elevation system.
   * Layer 1 (ambient) + Layer 2 (direct) — realistic depth,
   * not a single blurry blob. Inspired by Apple/Stripe approach.
   */
  --shadow-sm:   0 1px 2px rgba(0,0,0,.06),
                 0 1px 4px rgba(0,0,0,.04);
  --shadow-md:   0 2px 8px rgba(0,0,0,.07),
                 0 1px 2px rgba(0,0,0,.04);
  --shadow-lg:   0 8px 28px rgba(0,0,0,.10),
                 0 2px 6px  rgba(0,0,0,.05);
  --shadow-lift: 0 16px 48px rgba(0,0,0,.13),
                 0 4px 12px rgba(0,0,0,.07);

  /* Consistent easing — feels physical, not robotic */
  --ease:        cubic-bezier(.25,.46,.45,.94);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);

  --container: 1200px;
  --gap:       24px;

  /* UI state colours */
  --clr-white:     #ffffff;
  --clr-dark:      #111111;     /* alias for text in badge contexts */
  --clr-badge-def: #444444;
  --clr-star-empty:#d0d0d0;
  --clr-gold:      #a07000;
  --clr-green:     #16a34a;     /* "OTT New" / "Streaming" label */
  --clr-blue:      #2563eb;     /* "New" label */
  --clr-whatsapp:  #25d366;

  /* Platform brand colours */
  --clr-netflix:  #e50914;
  --clr-prime:    #00a8e0;
  --clr-disney:   #113ccf;
  --clr-jio:      #7b2ff7;
  --clr-sony:     #e84d0e;
  --clr-zee5:     #6b21a8;
  --clr-apple:    #1c1c1e;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;         /* prevents OS dark-mode FOUC */
  overflow-x: hidden;          /* prevent horizontal blowout on mobile */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--ff-sans);
  font-size: 1rem; line-height: 1.65;
  background: var(--clr-bg); color: var(--clr-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
/* Belt AND braces — covers orphaned <li> outside a <ul> */
li { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── HEADING TYPOGRAPHY — premium refinements ───────────── */
/* Serif headings: enable ligatures, optical sizing,
   negative letter-spacing (how premium magazines tighten
   large display type — makes it look designed, not default) */
h1, h2, h3, h4, h5, h6 {
  font-optical-sizing: auto;
  font-feature-settings: 'liga' 1, 'kern' 1;
}
/* Specifically for serif display headings */
.mrp-entry-title,
.mrp-featured h1,
.mrp-featured__title {
  letter-spacing: -0.025em;
  font-feature-settings: 'liga' 1, 'dlig' 1, 'kern' 1;
}
/* Large section headings — slight negative tracking */
.mrp-section-heading h2,
.mrp-archive-header h1 {
  letter-spacing: -0.015em;
}
/* Card and list titles — keep natural tracking */
.mrp-card h3,
.mrp-side-story h3,
.mrp-cinema-card h3,
.mrp-editorial-item h3 {
  letter-spacing: -0.01em;
}

/* ── CONTAINER ──────────────────────────────────────────── */
.mrp-container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: 1rem;
}
@media (min-width: 768px) { .mrp-container { padding-inline: 1.5rem; } }

/* ── HOME INTRO — subtle SEO H1 block ──────────────────── */
/*
 * Visually de-emphasised: smaller than body text, muted colour,
 * no border/background. Bing/crawlers read it at full weight;
 * casual visitors barely notice it between the header and
 * the Top Stories section.
 */
.mrp-home-intro {
  padding: .5rem 0 .75rem;
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: 1.25rem;
}
.mrp-home-intro__h1 {
  font-family: var(--ff-sans);
  font-size: .8rem;           /* smaller than body 1rem — visually subordinate */
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .01em;
  color: var(--clr-text-muted);
  margin: 0 0 .2rem;
  text-transform: none;
}
.mrp-home-intro__desc {
  font-size: .75rem;
  line-height: 1.5;
  color: var(--clr-text-muted);
  margin: 0;
  max-width: 68ch;
}

/* ── READING PROGRESS BAR ───────────────────────────────── */
#mrp-progress-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--clr-primary); width: 0%; z-index: 9999;
  transition: width .1s linear;
}

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
.mrp-header {
  position: sticky; top: 0; z-index: 500;
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow .2s, transform .25s;
}
.mrp-header--scrolled { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.mrp-header--hidden   { transform: translateY(-100%); }
.mrp-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 1rem;
}
/* ── TEXT WORDMARK — editorial masthead style ── */
.mrp-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .15rem;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
}
/* Wordmark row — main name + badge sit centre-aligned */
.mrp-logo__wordmark {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  line-height: 1;
  white-space: nowrap;
}

/* Primary word — heavy serif masthead */
.mrp-logo__main {
  font-family: var(--ff-serif);
  font-size: 1.55rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: color .2s ease;
}

/* "Post" — white text on a solid red badge  */
.mrp-logo__accent {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-serif);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--clr-primary);
  padding: .22em .5em .18em;
  border-radius: 3px;
  line-height: 1;
  /* Tiny lift so it sits optically centre with the taller main text */
  position: relative;
  top: -1px;
  transition: background .2s ease, transform .2s ease;
}
/* No underline on the badge */
.mrp-logo__accent::after { display: none; }

/* Tagline — tiny uppercase sans beneath the wordmark */
.mrp-logo__tagline {
  font-family: var(--ff-sans);
  font-size: .48rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--clr-muted);
  display: block;
  padding-top: .25rem;
  padding-left: 1px;
}

/* Hover states */
.mrp-logo:hover .mrp-logo__main  { color: var(--clr-primary); }
.mrp-logo:hover .mrp-logo__accent {
  background: #a80000;
  transform: translateY(-1px);
}

/* Primary Nav — wrapper is hidden on mobile, shown on desktop */
.mrp-primary-nav {
  display: none;
}
@media (min-width: 768px) {
  .mrp-primary-nav { display: block; }
}

/*
 * .mrp-nav-list — the actual <ul> inside the nav.
 * Moving flex layout here (not on <nav>) so the list itself
 * is the flex container. No bullets: inherits from reset.
 */
.mrp-nav-list {
  display: none;             /* hidden until desktop breakpoint */
  list-style: none;          /* explicit — never show bullets */
  margin: 0; padding: 0;
}
@media (min-width: 768px) {
  .mrp-nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: .85rem;
    font-weight: 600;
  }
}
/* Nav list items */
.mrp-nav-list li {
  list-style: none;          /* belt and braces */
  display: block;            /* override any residual list-item display */
  margin: 0; padding: 0;
}
/* Nav links */
.mrp-nav-list a {
  color: var(--clr-text);
  display: block;
  padding: .25rem 0;
  position: relative;
  white-space: nowrap;
}
.mrp-nav-list a:hover { color: var(--clr-primary); }
.mrp-nav-list a.is-active { color: var(--clr-primary); }
/* Red underline on active link */
.mrp-nav-list a.is-active::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -18px; left: 0; right: 0;
  height: 2px;
  background: var(--clr-primary);
}

/* Header right */
.mrp-header__right { display: flex; align-items: center; gap: .5rem; }
.mrp-search-form {
  display: none; position: relative;
}
@media (min-width: 960px) {
  .mrp-search-form { display: block; }
  .mrp-search-form input {
    width: 200px; padding: .4rem .8rem .4rem 2rem;
    border: 1px solid var(--clr-border); border-radius: 999px;
    font-size: .8rem; background: var(--clr-surface);
    transition: width .2s, border-color .2s;
  }
  .mrp-search-form input:focus {
    outline: none; width: 240px; border-color: var(--clr-primary);
  }
  /* SVG icon positioned inside input — no emoji */
  .mrp-search-form__icon {
    position: absolute; left: .55rem; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center;
    color: var(--clr-muted); pointer-events: none;
  }
}

/* Subscribe CTA */
.mrp-subscribe-btn {
  display: none;
  /* Flex ensures icon + text are always vertically centred */
  align-items: center;
  gap: .35rem;            /* replaces the unreliable space character */
  padding: .4rem 1rem;
  background: var(--clr-primary); color: var(--clr-white);
  border-radius: 999px; font-size: .8rem; font-weight: 700;
  line-height: 1;         /* prevents line-height from pushing icon off-centre */
  transition: background .15s;
  white-space: nowrap;
}
@media (min-width: 640px) { .mrp-subscribe-btn { display: inline-flex; } }
.mrp-subscribe-btn:hover { background: var(--clr-primary-d); color: var(--clr-white); }

/* Mobile menu button */
.mrp-menu-btn {
  width: 36px; height: 36px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.mrp-menu-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--clr-text); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
@media (min-width: 768px) { .mrp-menu-btn { display: none; } }

/* ── DESKTOP inline nav (inside header) ────────────── */
.mrp-primary-nav--desktop { display: none; }
@media (min-width: 768px) {
  .mrp-primary-nav--desktop { display: flex; align-items: center; }
}

/* ── MOBILE slide-out nav (outside header, root z-index) ──
   z-index 600 > header (500) > overlay (498).
   Lives outside <header> so header's transform:translateY(-100%)
   and stacking context can NEVER displace it. */
.mrp-primary-nav--mobile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  position: fixed; top: 60px; left: -100%; bottom: 0;
  width: 80%; max-width: 280px;
  background: var(--clr-bg); box-shadow: var(--shadow-md);
  padding: 1.5rem 1.25rem; transition: left .25s ease;
  z-index: 600;                /* root stacking context — beats everything */
  border-right: 1px solid var(--clr-border);
  overflow-y: auto;
}
.mrp-primary-nav--mobile.is-open { left: 0; }
.mrp-primary-nav--mobile a {
  display: block; padding: .75rem 0;
  border-bottom: 1px solid var(--clr-border);
  font-size: .95rem; font-weight: 600; width: 100%;
}
/* ── Un-hide and stack nav items inside the mobile slide-out ──
   .mrp-nav-list is display:none by default (desktop-only rule).
   This override makes it visible and vertical in the mobile panel. */
.mrp-primary-nav--mobile .mrp-nav-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
}
/* Hide mobile nav entirely on desktop */
@media (min-width: 768px) {
  .mrp-primary-nav--mobile { display: none !important; }
}
/* Scroll lock while mobile nav is open.
 * Do NOT use position:fixed on body — it displaces
 * position:fixed children (nav, overlay) on iOS Safari.
 * overflow:hidden on both html + body handles Android/desktop.
 * The overlay's touchmove preventDefault handles iOS Safari. */
html.mrp-nav-open,
body.mrp-nav-open {
  overflow: hidden;
}

#mrp-nav-overlay {
  /* visibility+opacity allows CSS transition; display:none cannot */
  visibility: hidden;
  opacity: 0;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 498;
  transition: opacity .25s ease, visibility .25s;
}
#mrp-nav-overlay.is-visible {
  visibility: visible;
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════════════════════ */
.mrp-breadcrumb-bar {
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-surface);
}
.mrp-breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .3rem; padding: .5rem 0; font-size: .75rem; color: var(--clr-muted);
}
.mrp-breadcrumb li + li::before { content: '›'; margin-right: .3rem; }
.mrp-breadcrumb a { color: var(--clr-muted); }
.mrp-breadcrumb a:hover { color: var(--clr-primary); }
.mrp-breadcrumb span { color: var(--clr-text); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   SECTION LABELS
═══════════════════════════════════════════════════════════ */
.mrp-section-label {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem;
}
.mrp-section-label__text {
  font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: var(--clr-primary);
  border-bottom: 2px solid var(--clr-primary); padding-bottom: 2px;
  white-space: nowrap;
}
.mrp-section-label__line { flex: 1; height: 1px; background: var(--clr-border); }
/*
 * SECTION HEADING — editorial chapter marker.
 *
 * Before: thick black bottom border acting as a "lid" with 1.5rem gap.
 * After:  3 px red top rule (accent, not border) + ample space above
 *         and below. The red rule opens the chapter; space separates it.
 *         Same pattern: NYT, Variety, The Atlantic.
 */
.mrp-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  /*
   * Gradient top rule — fades from solid primary to near-transparent.
   * Premium magazines do this (NYT, The Atlantic) because a hard line
   * that runs the full width feels bureaucratic.
   * A gradient gives a "this section starts here" emphasis at the left
   * while dissolving gracefully to the right.
   */
  border-top: none;
  background-image: linear-gradient(
    90deg,
    var(--clr-primary) 0%,
    rgba(204,0,0,.18) 55%,
    rgba(204,0,0,0) 100%
  );
  background-size: 100% 3px;
  background-repeat: no-repeat;
  background-position: top left;
  padding-top: .85rem;
  padding-bottom: 0;
  margin-bottom: 2rem;
}
.mrp-section-heading h2 {
  font-family: var(--ff-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.15;
}
.mrp-section-heading a {
  font-family: var(--ff-sans);
  font-size: .7rem;
  font-weight: 700;
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 1rem;
}
.mrp-section-heading a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   PAGE SECTIONS — vertical rhythm & breathing room
   ─────────────────────────────────────────────────────────
   Rule: give every section room to exhale.
   Space IS the divider — no heavy lines needed between sections.
   Each section gets a top margin that makes it feel like
   a new chapter, not a continuation of the last.
═══════════════════════════════════════════════════════════ */
.mrp-section {
  /* Generous vertical gap — this is where the design breathes */
  margin-top: 4rem;
}
/* First section (Top Stories) sits close under the hero strip */
.mrp-section:first-of-type {
  margin-top: 2rem;
}
/* Mobile: slightly tighter to preserve content density */
@media (max-width: 639px) {
  .mrp-section { margin-top: 2.75rem; }
  .mrp-section:first-of-type { margin-top: 1.5rem; }
}

/*
 * Subtle inter-section ornament rule.
 * Sits in the space ABOVE each section (not a heavy divider —
 * a quiet breath-mark, like a magazine's thin column rule).
 * Only shows on tablet+ where there's enough space to matter.
 */
@media (min-width: 640px) {
  .mrp-section + .mrp-section::before {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: var(--clr-border);
    border-radius: 1px;
    margin: 0 auto 4rem;
    /* Positions inside the 4rem gap above this section */
    transform: translateY(-2rem);
  }
}

/* ═══════════════════════════════════════════════════════════
   PLATFORM BADGES — Apple/Stripe-level restraint
   Principle: colour as an accent, not a flood.
   Brand identity through text + subtle tint — not a rainbow.
═══════════════════════════════════════════════════════════ */
.mrp-platform-badge {
  display: inline-flex;
  align-items: center;
  font-size: .58rem;
  font-weight: 700;
  font-family: var(--ff-sans);
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .2rem .5rem;
  border-radius: 4px;
  border: 1px solid;
  line-height: 1;
  white-space: nowrap;
  transition: opacity .15s;
}
.mrp-platform-badge:hover { opacity: .75; }

/* Each platform: brand colour text + 8 % tint bg + 25 % tint border */
.mrp-badge--netflix {
  color: #c50812;
  background: rgba(229,9,20,.07);
  border-color: rgba(229,9,20,.22);
}
.mrp-badge--prime {
  color: #0077a3;
  background: rgba(0,168,224,.08);
  border-color: rgba(0,168,224,.25);
}
.mrp-badge--disney {
  color: #0f35b0;
  background: rgba(17,60,207,.07);
  border-color: rgba(17,60,207,.22);
}
.mrp-badge--jio {
  color: #5f17d4;
  background: rgba(123,47,247,.07);
  border-color: rgba(123,47,247,.22);
}
.mrp-badge--sony {
  color: #c43e0a;
  background: rgba(232,77,14,.07);
  border-color: rgba(232,77,14,.22);
}
.mrp-badge--zee5 {
  color: #5a1b8e;
  background: rgba(107,33,168,.07);
  border-color: rgba(107,33,168,.22);
}
.mrp-badge--apple {
  color: #1c1c1e;
  background: rgba(28,28,30,.05);
  border-color: rgba(28,28,30,.18);
}
.mrp-badge--default {
  color: var(--clr-text);
  background: var(--clr-surface);
  border-color: var(--clr-border);
}

/* ═══════════════════════════════════════════════════════════
   STAR RATINGS
═══════════════════════════════════════════════════════════ */
.mrp-stars {
  display: inline-flex; align-items: center; gap: .2rem;
}
.mrp-star { font-size: .85rem; line-height: 1; }
.mrp-star--full, .mrp-star--half { color: var(--clr-star); }
.mrp-star--empty { color: var(--clr-star-empty); }
.mrp-rating-value {
  font-size: .8rem; font-weight: 800; margin-left: .2rem; color: var(--clr-text);
}
.mrp-rating-max { font-size: .65rem; font-weight: 400; color: var(--clr-muted); }
.mrp-tmdb-score {
  font-size: .65rem; font-weight: 600; color: var(--clr-muted);
  border: 1px solid var(--clr-border); padding: .1rem .35rem; border-radius: 3px;
  margin-left: .35rem;
}

/* ═══════════════════════════════════════════════════════════
   META LINE  (Dir. · Runtime · Language)
═══════════════════════════════════════════════════════════ */
.mrp-meta-line {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .25rem; font-size: .7rem; color: var(--clr-muted); line-height: 1.3;
}
.mrp-dot { opacity: .4; }

/* ═══════════════════════════════════════════════════════════
   ARTICLE BYLINE
═══════════════════════════════════════════════════════════ */
.mrp-byline {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .2rem .5rem; font-size: .7rem; color: var(--clr-muted);
}
.mrp-byline__author { font-weight: 700; color: var(--clr-text); }
.mrp-byline__sep { opacity: .4; }

/* ═══════════════════════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════════════════════ */
/* Main content — generous breathing at top and bottom of page */
.mrp-main {
  padding-top: 2rem;
  /* Footer already has margin-top: 4rem — 2.5rem here = ~6.5rem total gap */
  padding-bottom: 2.5rem;
}

/* ═══════════════════════════════════════════════════════════
   TOP STORIES GRID
═══════════════════════════════════════════════════════════ */
.mrp-top-stories {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);   /* hero panel earns the bigger radius */
  overflow: hidden;
  background: var(--clr-bg);
  /* Tier 3 shadow — the most important element on the page */
  box-shadow: var(--shadow-lg);
}
.mrp-top-stories__inner {
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .mrp-top-stories__inner {
    grid-template-columns: 5fr 3fr;
  }
}

/* Featured article */
.mrp-featured {
  display: flex; border-bottom: 1px solid var(--clr-border);
}
@media (min-width: 900px) {
  .mrp-featured {
    border-bottom: none; border-right: 1px solid var(--clr-border);
  }
}

/* ── MOBILE HERO: image stacks full-width on top, body below ── */
@media (max-width: 599px) {
  .mrp-featured {
    flex-direction: column;   /* image on top, text below */
  }
  .mrp-featured__thumb {
    width: 100% !important;   /* full bleed across the card */
    height: 220px;            /* fixed hero height — shows the poster clearly */
    flex-shrink: 0;
  }
  .mrp-featured__body {
    padding: 1rem !important;
  }
  /* Already an h2 on homepage, keep it readable */
  .mrp-featured h2,
  .mrp-featured h1 {
    font-size: 1.25rem !important;
  }
  .mrp-featured__excerpt {
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.mrp-featured__thumb {
  width: 110px; flex-shrink: 0;
  background: var(--clr-surface); position: relative; overflow: hidden;
}
@media (min-width: 480px) { .mrp-featured__thumb { width: 150px; } }
@media (min-width: 900px)  { .mrp-featured__thumb { width: 200px; } }
.mrp-featured__thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
/* Clickable image anchors — fill the thumb panel so the whole image is the hit target */
.mrp-featured__thumb a,
.mrp-side-story__thumb a,
.mrp-card__thumb a,
.mrp-cinema-card__thumb a {
  display: block;
  width: 100%;
  height: 100%;
}
.mrp-featured__thumb a img,
.mrp-side-story__thumb a img,
.mrp-card__thumb a img,
.mrp-cinema-card__thumb a img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mrp-featured__label {
  position: absolute; top: .5rem; left: .5rem;
  background: var(--clr-primary); color: var(--clr-white);
  font-size: .55rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; padding: .15rem .4rem; border-radius: 2px;
}
.mrp-featured__platform {
  position: absolute; bottom: .5rem; left: .5rem;
}
.mrp-featured__body {
  flex: 1; padding: .75rem; display: flex; flex-direction: column;
  justify-content: space-between; min-width: 0;
}
@media (min-width: 480px) { .mrp-featured__body { padding: 1.25rem; } }
@media (min-width: 900px)  { .mrp-featured__body { padding: 1.75rem; } }
.mrp-featured__genre-row {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .35rem; margin-bottom: .5rem;
}
.mrp-genre-badge {
  font-size: .62rem;
  font-weight: 500;          /* lighter — uppercase + tracking does the work */
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--clr-primary);
  background: rgba(204,0,0,.06);
  border: 1px solid rgba(204,0,0,.15);
  padding: .1rem .4rem;
  border-radius: 999px;
}
.mrp-featured h1 {
  font-family: var(--ff-serif); font-size: 1.3rem; font-weight: 700;
  line-height: 1.25; margin-bottom: .4rem;
}
@media (min-width: 480px) { .mrp-featured h1 { font-size: 1.7rem; } }
@media (min-width: 900px)  { .mrp-featured h1 { font-size: 2rem; } }
.mrp-featured h1 a:hover { color: var(--clr-primary); }
.mrp-featured__excerpt {
  font-size: .82rem; color: var(--clr-muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: .75rem;
}
.mrp-featured__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .75rem; border-top: 1px solid var(--clr-border); flex-wrap: wrap; gap: .5rem;
}
.mrp-read-link {
  font-size: .75rem; font-weight: 800; color: var(--clr-primary);
  display: inline-flex; align-items: center; gap: .2rem;
}
.mrp-read-link:hover { text-decoration: underline; }
.mrp-read-link::after { content: ' →'; }

/* Side stories — right column of the Top Stories card */
.mrp-side-stories {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mrp-side-story {
  display: flex;
  border-top: 1px solid var(--clr-border);
  flex: 1;
  align-items: stretch;   /* both thumb and body stretch to card height */
  min-height: 90px;       /* ensures thumb never collapses */
}
.mrp-side-story__thumb {
  width: 90px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: var(--clr-surface);
  align-self: stretch;
}
.mrp-side-story__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Mobile: bigger, cleaner side-story thumbnails */
@media (max-width: 599px) {
  .mrp-side-story {
    min-height: 100px;
  }
  .mrp-side-story__thumb {
    width: 110px;          /* wider thumb = less cropped-looking */
  }
  .mrp-side-story h3 {
    font-size: .9rem;
    /* Cap at 2 lines so the card height stays compact */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* Hide rating pill on mobile — saves horizontal space */
  .mrp-side-story__rating-wrap {
    display: none;
  }
}
.mrp-side-story__platform {
  position: absolute; bottom: .3rem; left: .3rem;
}
.mrp-side-story__body { flex: 1; padding: .75rem; min-width: 0; }
.mrp-side-story h3 {
  font-family: var(--ff-serif); font-size: .95rem; font-weight: 700;
  line-height: 1.3; margin: .25rem 0 .3rem;
}
.mrp-side-story h3 a:hover { color: var(--clr-primary); }
.mrp-side-story__rating-wrap {
  flex-shrink: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding-right: .75rem; gap: .2rem;
}
.mrp-rating-pill {
  display: flex; align-items: center; gap: .2rem;
  background: rgba(245,166,35,.1); border: 1px solid rgba(245,166,35,.3);
  border-radius: 999px; padding: .15rem .5rem;
  font-size: .75rem; font-weight: 800; color: var(--clr-gold);
}
.mrp-rating-pill::before { content: '★'; color: var(--clr-star); }
.mrp-tmdb-sub { font-size: .6rem; color: var(--clr-muted); }

/*
 * OTT quick-link strip — refined filter tabs.
 *
 * Neutral pill tabs: white/surface bg, border, dark text.
 * Active = primary red. Disabled = muted (no posts for that platform).
 */
.mrp-ott-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1rem;
  padding: .7rem 1rem;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.mrp-ott-strip__label {
  font-family: var(--ff-sans);
  font-size: .65rem;
  font-weight: 600;
  color: var(--clr-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: .25rem;
  flex-shrink: 0;
}
/* Neutral pill tabs — no rainbow, no brand colours */
.mrp-ott-tab {
  font-family: var(--ff-sans);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: .3rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text);
  cursor: pointer;
  line-height: 1;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.mrp-ott-tab:hover:not(:disabled) {
  background: var(--clr-text);
  color: var(--clr-bg);
  border-color: var(--clr-text);
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.mrp-ott-tab.is-active {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(204,0,0,.25);
}
/* Disabled — platform has no content */
.mrp-ott-tab:disabled {
  opacity: .38;
  cursor: not-allowed;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   OTT SECTION (Platform Rows)
═══════════════════════════════════════════════════════════ */
.mrp-ott-platform-header {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap;
}
/*
 * OTT section row header — editorial section marker style.
 * Like a print magazine's department header: left coloured rule
 * + brand-coloured type on white. No solid pill fill.
 */
.mrp-ott-platform-name {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-sans);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--clr-text);
  background: transparent;
  padding: 0;
  /* Left accent rule in the brand colour (added per-platform below) */
  border-left: 3px solid var(--clr-border);
  padding-left: .55rem;
  line-height: 1.2;
}
/* Per-platform: only the left rule changes colour */
.mrp-ott-platform-name--netflix { border-left-color: #e50914; color: #c50812; }
.mrp-ott-platform-name--prime   { border-left-color: #00a8e0; color: #0077a3; }
.mrp-ott-platform-name--disney  { border-left-color: #113ccf; color: #0f35b0; }
.mrp-ott-platform-name--jio     { border-left-color: #7b2ff7; color: #5f17d4; }
.mrp-ott-platform-name--sony    { border-left-color: #e84d0e; color: #c43e0a; }
.mrp-ott-platform-name--zee5    { border-left-color: #6b21a8; color: #5a1b8e; }
.mrp-ott-platform-name--cinemas { border-left-color: var(--clr-text); color: var(--clr-text); }
.mrp-ott-row-subtitle { font-size: .8rem; color: var(--clr-muted); }
.mrp-ott-row-line { flex: 1; height: 1px; background: var(--clr-border); }
.mrp-ott-row-all { font-size: .75rem; font-weight: 700; color: var(--clr-primary); }
.mrp-ott-row-all:hover { text-decoration: underline; }
.mrp-ott-row + .mrp-ott-row { margin-top: 2.5rem; }

/* In Cinemas */
.mrp-cinemas-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
@media (min-width: 640px)  { .mrp-cinemas-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .mrp-cinemas-grid { grid-template-columns: repeat(4, 1fr); } }
.mrp-cinema-card {
  display: flex; gap: .6rem; padding: .75rem;
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius); align-items: flex-start;
}
.mrp-cinema-card__thumb {
  width: 52px; flex-shrink: 0; border-radius: 5px;
  overflow: hidden; background: var(--clr-border);
}
.mrp-cinema-card__thumb img { width: 100%; height: 72px; object-fit: cover; }
.mrp-cinema-card__body { flex: 1; min-width: 0; }
.mrp-cinema-card h3 {
  font-family: var(--ff-serif); font-size: .82rem; font-weight: 700;
  line-height: 1.25; margin-bottom: .2rem;
}
.mrp-cinema-card h3 a:hover { color: var(--clr-primary); }
.mrp-cinemas-tag {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .6rem; font-weight: 700; background: var(--clr-text);
  color: var(--clr-white); padding: .2rem .5rem; border-radius: 3px;
  text-transform: uppercase; margin-top: .4rem;
}

/* ═══════════════════════════════════════════════════════════
   ARTICLE CARDS (review grid)
═══════════════════════════════════════════════════════════ */
.mrp-card {
  display: flex; flex-direction: column;
  background: var(--clr-bg); border: 1px solid var(--clr-border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md);
  /* Use var(--ease) so lift feels physical, not robotic */
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.mrp-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);   /* slightly more presence than 2px */
}
.mrp-card__thumb {
  aspect-ratio: 16/9; overflow: hidden; position: relative; background: var(--clr-surface);
}
.mrp-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.mrp-card:hover .mrp-card__thumb img { transform: scale(1.03); }
.mrp-card__platform { position: absolute; top: .5rem; left: .5rem; }
.mrp-card__rating {
  position: absolute; top: .5rem; right: .5rem;
  display: flex; align-items: center; gap: .2rem;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  color: var(--clr-white); font-size: .7rem; font-weight: 800;
  padding: .2rem .5rem; border-radius: 999px;
}
.mrp-card__rating::before { content: '★'; color: var(--clr-star); }
.mrp-card__status {
  position: absolute; bottom: .5rem; left: .5rem;
  background: var(--clr-green); color: var(--clr-white);
  font-size: .6rem; font-weight: 800; text-transform: uppercase;
  padding: .15rem .5rem; border-radius: 3px;
}
.mrp-card__status--new { background: var(--clr-blue); }
.mrp-card__body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.mrp-card__genre {
  font-size: .65rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: var(--clr-primary); margin-bottom: .3rem;
}
.mrp-card h3 {
  font-family: var(--ff-serif); font-size: .95rem; font-weight: 700;
  line-height: 1.3; margin: .25rem 0;
}
.mrp-card h3 a:hover { color: var(--clr-primary); }
.mrp-card__excerpt {
  font-size: .78rem; color: var(--clr-muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: .4rem 0 .75rem; flex: 1;
}
.mrp-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .6rem; border-top: 1px solid var(--clr-border); gap: .5rem; flex-wrap: wrap;
}

/* ── Card grid layouts ──────────────────────────────────── */
.mrp-grid-3 {
  display: grid; grid-template-columns: 1fr; gap: var(--gap);
}
@media (min-width: 640px)  { .mrp-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px)  { .mrp-grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Lead + sidebar layout */
.mrp-lead-layout {
  display: grid; grid-template-columns: 1fr; gap: var(--gap); margin-bottom: var(--gap);
}
@media (min-width: 900px) {
  .mrp-lead-layout { grid-template-columns: 3fr 2fr; }
}
.mrp-lead-layout .mrp-card:first-child h3 { font-size: 1.25rem; }

/* Horizontal card (sidebar stack) */
.mrp-card--horizontal {
  flex-direction: row;
}
.mrp-card--horizontal .mrp-card__thumb {
  width: 110px; flex-shrink: 0; aspect-ratio: unset; min-height: 100%;
}
@media (min-width: 480px) { .mrp-card--horizontal .mrp-card__thumb { width: 130px; } }
.mrp-card--horizontal .mrp-card__body { padding: .75rem; }
.mrp-card--horizontal h3 { font-size: .85rem; }
.mrp-card--horizontal .mrp-card__excerpt { -webkit-line-clamp: 2; }

/* ═══════════════════════════════════════════════════════════
   NUMBERED EDITORIAL LIST (Bollywood / Hollywood)
═══════════════════════════════════════════════════════════ */
/*
 * The section heading above already has a red 3px top rule.
 * Adding another thick black top border on the list itself
 * creates a double-rule collision and visual noise. Removed.
 * The list items are separated by their own bottom 1px border.
 */
.mrp-editorial-list {
  /* No top border — section heading rule handles that */
}
.mrp-editorial-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  /* More generous row height — items need room to breathe */
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--clr-border);
}
.mrp-editorial-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.mrp-editorial-item__num {
  font-family: var(--ff-serif);
  font-size: 2rem;
  font-weight: 700;
  /* Lighter than before — supporting role, not competing with title */
  color: var(--clr-border);
  line-height: 1;
  flex-shrink: 0;
  width: 2.25rem;
  text-align: right;
}
.mrp-editorial-item__body { flex: 1; min-width: 0; }
.mrp-editorial-item__tags {
  display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; margin-bottom: .3rem;
}
.mrp-editorial-item__genre {
  font-size: .6rem; font-weight: 700; text-transform: uppercase;
  background: var(--clr-surface); color: var(--clr-muted); padding: .1rem .4rem; border-radius: 2px;
}
.mrp-editorial-item h3 {
  font-family: var(--ff-serif); font-size: .92rem; font-weight: 700;
  line-height: 1.3; margin-bottom: .2rem;
}
.mrp-editorial-item h3 a:hover { color: var(--clr-primary); }
.mrp-editorial-item__excerpt {
  font-size: .75rem; color: var(--clr-muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mrp-editorial-item__meta {
  display: flex; align-items: center; gap: .5rem; margin-top: .4rem; flex-wrap: wrap;
}
.mrp-editorial-item__rating {
  display: flex; align-items: center; gap: .15rem;
  font-size: .7rem; font-weight: 800; color: var(--clr-gold);
}
.mrp-editorial-item__rating::before { content: '★'; color: var(--clr-star); }

/* Two-column list grid */
.mrp-two-lists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  /* Same top gap as .mrp-section so it breathes cleanly
     after the Latest Reviews section above it */
  margin-top: 4rem;
}
/* Mobile: match the tighter section rhythm */
@media (max-width: 639px) {
  .mrp-two-lists { margin-top: 2.75rem; }
}
@media (min-width: 640px) {
  /* Ornament hairline above the two-lists block —
     mirrors the .mrp-section + .mrp-section::before rule */
  .mrp-two-lists::before {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: var(--clr-border);
    border-radius: 1px;
    margin: 0 auto 4rem;
    grid-column: 1 / -1;  /* span both columns so it centres correctly */
  }
}
@media (min-width: 900px) { .mrp-two-lists { grid-template-columns: 1fr 1fr; } }

/* ═══════════════════════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════════════════════ */
.mrp-single-layout {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
/* Both grid items must declare min-width: 0 so they can't blow out the grid */
.mrp-single-layout > * { min-width: 0; }
@media (min-width: 960px) {
  .mrp-single-layout { grid-template-columns: 1fr 300px; }
}

/* Article header */
.mrp-entry-header { margin-bottom: 1.5rem; }
.mrp-entry-cats {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem;
}
.mrp-entry-cat {
  font-size: .68rem;
  font-weight: 500;          /* uppercase does the lifting — 800 was overkill */
  letter-spacing: .07em;     /* wider tracking compensates for lighter weight */
  text-transform: uppercase;
  color: var(--clr-primary);
  background: rgba(204,0,0,.06);
  border: 1px solid rgba(204,0,0,.18);   /* adds definition without extra weight */
  padding: .2rem .55rem;
  border-radius: 999px;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.mrp-entry-cat:hover {
  background: rgba(204,0,0,.12);
  border-color: rgba(204,0,0,.35);
}
.mrp-entry-title {
  font-family: var(--ff-serif); font-size: 1.75rem; font-weight: 700;
  line-height: 1.2; margin-bottom: .75rem;
}
@media (min-width: 640px) { .mrp-entry-title { font-size: 2.2rem; } }
@media (min-width: 900px)  { .mrp-entry-title { font-size: 2.6rem; } }
.mrp-entry-info {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .5rem .75rem; margin: .75rem 0;
}
.mrp-entry-info__item {
  font-size: .72rem; color: var(--clr-muted); display: flex; align-items: center; gap: .25rem;
}
.mrp-entry-info__label { font-weight: 600; color: var(--clr-text); }

/* Review score box */
.mrp-review-score {
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-primary);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0;
  flex-wrap: wrap;
}
.mrp-review-score__critic { display: flex; flex-direction: column; gap: .25rem; }
.mrp-review-score__label { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--clr-muted); }
.mrp-review-score__value { font-family: var(--ff-serif); font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--clr-primary); }
.mrp-review-score__max  { font-size: .9rem; color: var(--clr-muted); }
.mrp-review-score__audience { border-left: 1px solid var(--clr-border); padding-left: 1.25rem; }
.mrp-review-score__platforms { display: flex; gap: .4rem; flex-wrap: wrap; margin-left: auto; }

/* Hero image */
.mrp-entry-hero {
  aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius);
  margin-bottom: 1.5rem; background: var(--clr-surface);
}
.mrp-entry-hero img { width: 100%; height: 100%; object-fit: cover; }

/* Content — editorial body typography */
/* Contain any WP block or embed that could blow out the mobile layout */
.mrp-entry-content iframe,
.mrp-entry-content embed,
.mrp-entry-content object,
.mrp-entry-content table,
.mrp-entry-content pre,
.mrp-entry-content .wp-block-embed,
.mrp-entry-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
}
/* Remove Gutenberg full-width / wide-width offsets inside the article */
.mrp-entry-content .alignwide,
.mrp-entry-content .alignfull,
.mrp-entry-content .wp-block-cover.alignfull {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.mrp-entry-content {
  /* Serif body for the review article — same as Variety/THR/Ebert */
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--clr-text);
  font-feature-settings: 'liga' 1, 'kern' 1;
  font-optical-sizing: auto;
}
/* Lead paragraph — slightly larger, bold serif opener */
.mrp-entry-content > p:first-of-type {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--clr-text);
  font-weight: 500;
}
.mrp-entry-content h2 {
  font-family: var(--ff-serif); font-size: 1.45rem; font-weight: 700;
  letter-spacing: -0.015em;
  margin: 2.25rem 0 .8rem; padding-bottom: .45rem;
  border-bottom: 2px solid var(--clr-text);
}
.mrp-entry-content h3 {
  font-family: var(--ff-serif); font-size: 1.15rem; font-weight: 700;
  letter-spacing: -0.01em;
  margin: 1.75rem 0 .5rem;
}
.mrp-entry-content p { margin-bottom: 1.4rem; }
.mrp-entry-content ul, .mrp-entry-content ol {
  margin: 1rem 0 1.4rem 1.75rem; list-style: disc;
}
.mrp-entry-content ol { list-style: decimal; }
.mrp-entry-content li { margin-bottom: .5rem; }
/* Pull-quote blockquote — classic magazine style */
.mrp-entry-content blockquote {
  border-left: 4px solid var(--clr-primary);
  margin: 2rem 0; padding: 1rem 1.5rem;
  background: var(--clr-surface); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; font-size: 1.1rem; color: var(--clr-text);
  line-height: 1.7;
}
.mrp-entry-content blockquote::before {
  content: '\201C';
  display: block; font-size: 3rem; line-height: .8;
  color: var(--clr-primary); font-style: normal; margin-bottom: .25rem;
  font-family: var(--ff-serif);
}
.mrp-entry-content strong { font-weight: 700; color: var(--clr-text); }
.mrp-entry-content em { font-style: italic; }
.mrp-entry-content a { color: var(--clr-primary); text-decoration: underline; text-underline-offset: 3px; }
.mrp-entry-content a:hover { color: var(--clr-primary-d); }
.mrp-entry-content img { border-radius: var(--radius); margin: 2rem auto; }
.mrp-entry-content hr {
  border: none; border-top: 1px solid var(--clr-border); margin: 2.5rem 0;
}

/* Author bio box (E-E-A-T) */
.mrp-author-box {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius); padding: 1.25rem; margin-top: 2rem;
}
.mrp-author-box__avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden; background: var(--clr-border);
}
.mrp-author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }
.mrp-author-box__name { font-weight: 700; font-size: .95rem; margin-bottom: .1rem; }
.mrp-author-box__title { font-size: .72rem; color: var(--clr-primary); font-weight: 600; }
.mrp-author-box__bio { font-size: .8rem; color: var(--clr-muted); margin-top: .4rem; line-height: 1.55; }
.mrp-author-box__link { font-size: .75rem; font-weight: 700; color: var(--clr-primary); margin-top: .4rem; display: inline-block; }
.mrp-author-box__link:hover { text-decoration: underline; }

/* Related posts */
.mrp-related { margin-top: 2.5rem; }
.mrp-related h2 {
  font-family: var(--ff-serif); font-size: 1.3rem; font-weight: 700;
  border-bottom: 2px solid var(--clr-text); padding-bottom: .5rem; margin-bottom: 1.25rem;
}

/* Sidebar */
.mrp-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.mrp-sidebar-widget {
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius); padding: 1rem;
}
.mrp-sidebar-widget__title {
  font-family: var(--ff-serif); font-size: .9rem; font-weight: 700;
  border-bottom: 2px solid var(--clr-text); padding-bottom: .4rem; margin-bottom: .75rem;
}

/* ═══════════════════════════════════════════════════════════
   ARCHIVE / CATEGORY
═══════════════════════════════════════════════════════════ */
.mrp-archive-header {
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem;
}
.mrp-archive-header h1 {
  font-family: var(--ff-serif); font-size: 1.6rem; font-weight: 700; margin-bottom: .3rem;
}
.mrp-archive-header p { font-size: .85rem; color: var(--clr-muted); }

/* ═══════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════ */
.mrp-pagination { margin-top: 2.5rem; display: flex; justify-content: center; }
.mrp-pagination .page-numbers {
  display: flex; flex-wrap: wrap; list-style: none; gap: .4rem;
}
.mrp-pagination .page-numbers li a,
.mrp-pagination .page-numbers li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--clr-border);
  border-radius: 6px; font-size: .8rem; font-weight: 600; transition: all .15s;
}
.mrp-pagination .page-numbers li .current {
  background: var(--clr-primary); color: var(--clr-white); border-color: var(--clr-primary);
}
.mrp-pagination .page-numbers li a:hover { border-color: var(--clr-primary); color: var(--clr-primary); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.mrp-footer {
  margin-top: 4rem;
  /* border-top removed — replaced by gradient rule in design-v2 block */
  padding-block: 2.5rem 1.5rem;
  background: var(--clr-bg);
}
.mrp-footer__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem;
}
@media (min-width: 640px) { .mrp-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.mrp-footer-logo { font-family: var(--ff-serif); font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.mrp-footer-logo span { color: var(--clr-primary); }
.mrp-footer__about { font-size: .75rem; color: var(--clr-muted); line-height: 1.6; }
.mrp-footer__col-title {
  font-size: .65rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: var(--clr-muted); margin-bottom: .75rem;
}
.mrp-footer__col ul { display: flex; flex-direction: column; gap: .4rem; }
.mrp-footer__col a { font-size: .78rem; color: var(--clr-muted); }
.mrp-footer__col a:hover { color: var(--clr-text); }
.mrp-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--clr-border);
  font-size: .7rem; color: var(--clr-muted);
}

/* ═══════════════════════════════════════════════════════════
   SEARCH + 404
═══════════════════════════════════════════════════════════ */
.mrp-search-page { max-width: 640px; margin: 3rem auto; text-align: center; }
.mrp-search-page h1 { font-family: var(--ff-serif); font-size: 1.5rem; margin-bottom: 1rem; }
.mrp-search-form-big {
  display: flex; gap: .5rem; max-width: 480px; margin: 1rem auto;
}
.mrp-search-form-big input {
  flex: 1; padding: .6rem 1rem; border: 2px solid var(--clr-border);
  border-radius: var(--radius); font-size: .9rem;
}
.mrp-search-form-big input:focus { outline: none; border-color: var(--clr-primary); }
.mrp-search-form-big button {
  padding: .6rem 1.25rem; background: var(--clr-primary); color: var(--clr-white);
  border-radius: var(--radius); font-weight: 700; font-size: .85rem;
  transition: background .15s;
}
.mrp-search-form-big button:hover { background: var(--clr-primary-d); }

/* ═══════════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════════ */
.mrp-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}
.mrp-no-results {
  text-align: center; padding: 3rem 1rem;
  font-size: .9rem; color: var(--clr-muted);
}

/* ═══════════════════════════════════════════════════════════
   ICON SYSTEM — Inline SVG icons (replaces all emoji)
═══════════════════════════════════════════════════════════ */
.mrp-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  line-height: 0;     /* prevents baseline gap */
}
/* Inherit colour from parent so icons automatically match text/link colour */
.mrp-entry-info__item .mrp-icon { color: var(--clr-muted); }
.mrp-share-bar__label .mrp-icon { color: var(--clr-text); }
.mrp-tags-section__label .mrp-icon { color: var(--clr-muted); }

/* ═══════════════════════════════════════════════════════════
   FOCUS STATES — WCAG 2.1 AA visible keyboard navigation
═══════════════════════════════════════════════════════════ */
/* Remove default outline everywhere, restore via :focus-visible */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Cards, thumbnails, nav links — more prominent ring */
.mrp-card:focus-within,
a.mrp-card__title:focus-visible,
.mrp-primary-nav a:focus-visible,
.mrp-subscribe-btn:focus-visible,
.mrp-read-link:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 4px;
  border-radius: var(--radius);
}
.mrp-search-form input:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 0;
  border-color: var(--clr-primary);
}
.mrp-share-btn:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════
   MOTION — respect user's reduced-motion preference
═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  /* Freeze all card hover lifts */
  .mrp-card:hover,
  .mrp-featured__card:hover,
  .mrp-cinema-card:hover,
  .mrp-editorial-item:hover {
    transform: none !important;
  }
  /* Freeze all transitions */
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   POSTER IMAGE — object-position: top centre
   Keeps faces visible in portrait-crop thumbnails
═══════════════════════════════════════════════════════════ */
.mrp-featured__thumb img,
.mrp-cinema-card__thumb img,
.mrp-card__thumb img {
  object-position: top center;
}

/* ═══════════════════════════════════════════════════════════
   UTILITY CLASSES — replaces every inline style=""
═══════════════════════════════════════════════════════════ */
.mrp-text-xs   { font-size: .65rem; }
.mrp-text-sm   { font-size: .75rem; }
.mrp-text-muted { color: var(--clr-muted); }
.mrp-tags-row  { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.mrp-mb-xs     { margin-bottom: .2rem; }
.mrp-mt-md     { margin-top: 2rem; }
.mrp-ml-auto   { margin-left: auto; }
.mrp-stack     { display: flex; flex-direction: column; gap: 1.25rem; }
.mrp-heading-thick { border-bottom-width: 2px; }
.mrp-byline--mb { margin-bottom: .3rem; }

/* Poster fallback when no thumbnail exists */
.mrp-thumb-placeholder {
  width: 100%; height: 100%;
  background: #f0e8d8;   /* warm cream — no color jarring */
}

/* ── Cinema rating star (replaced emoji ★) ── */
.mrp-cinema-star {
  font-size: .7rem; font-weight: 700;
  color: var(--clr-star); margin-top: .3rem;
  display: flex; align-items: center; gap: .15rem;
}
.mrp-cinema-star::before {
  content: '★';   /* single ★ for rating — intentional, not decorative */
  font-family: var(--ff-sans);
}

/* ── Cinema "In Cinemas Now" section label ── */
.mrp-cinemas-label {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .65rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-bg); background: var(--clr-text);
  padding: .25rem .65rem; border-radius: 999px;
}

/* ═══════════════════════════════════════════════════════════
   NEW COMPONENT CLASSES — for single.php elements
═══════════════════════════════════════════════════════════ */

/* TMDB score display */
.mrp-score-value-lg {
  font-family: var(--ff-sans);
  font-size: 2rem; font-weight: 800;
  line-height: 1; color: var(--clr-text);
  letter-spacing: -0.03em;
}

/* Cinema status badge on review score box */
.mrp-score-cinema { margin-left: auto; display: flex; align-items: center; }

/* ── Tag chips ─────────────────────────────────────────── */
.mrp-tags-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1.75rem;
}
.mrp-tags-section__label {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--clr-muted);
  margin-right: .1rem;
  flex-shrink: 0;
}
.mrp-tag-chip {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: .7rem;
  font-weight: 600;
  color: var(--clr-text);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  padding: .22em .7em;
  text-decoration: none;
  line-height: 1.4;
  transition: background .15s, border-color .15s, color .15s;
}
.mrp-tag-chip:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}

/* ── Cast chips ────────────────────────────────────────── */
.mrp-cast-box {
  margin-top: 2rem; padding: 1rem 1.25rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
}
.mrp-cast-box__label {
  font-size: .65rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--clr-muted); margin-bottom: .6rem;
}
.mrp-cast-chips {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.mrp-cast-chip {
  font-size: .75rem;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: .3rem .6rem;
  line-height: 1.4;
}

/* Tags section */
.mrp-tags-section {
  margin-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
}
.mrp-tags-section__label {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .7rem; font-weight: 700; color: var(--clr-muted);
}
.mrp-tag-chip {
  display: inline-block;
  font-size: .7rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  padding: .2rem .55rem; border-radius: 999px;
  color: var(--clr-muted);
  transition: background .15s, color .15s;
}
.mrp-tag-chip:hover {
  background: var(--clr-primary); color: var(--clr-bg);
  border-color: var(--clr-primary);
}

/* Sidebar item anatomy */
.mrp-sidebar-item {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .75rem 0; border-bottom: 1px solid var(--clr-border);
}
.mrp-sidebar-item:last-child { border-bottom: none; }
.mrp-sidebar-item__thumb {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 6px; overflow: hidden; background: var(--clr-surface);
}
.mrp-sidebar-item__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mrp-sidebar-item__body { flex: 1; min-width: 0; }
.mrp-sidebar-item__genre {
  font-size: .6rem; font-weight: 700; text-transform: uppercase;
  color: var(--clr-primary); margin-bottom: .2rem; letter-spacing: .05em;
}
.mrp-sidebar-item__title {
  font-family: var(--ff-serif); font-size: .85rem; font-weight: 700;
  line-height: 1.3; margin-bottom: .2rem;
}
.mrp-sidebar-item__title a { color: var(--clr-text); }
.mrp-sidebar-item__title a:hover { color: var(--clr-primary); }
.mrp-sidebar-item__date { font-size: .65rem; color: var(--clr-muted); }


/* ═══════════════════════════════════════════════════════════
   FOOTER NAVIGATION LISTS
   Premium sites have clean, no-bullet footer link columns.
═══════════════════════════════════════════════════════════ */
.mrp-footer-list {
  list-style: none;
  margin: 0; padding: 0;
}
.mrp-footer-list li {
  list-style: none;
  display: block;
  margin: 0; padding: 0;
}
.mrp-footer-list a {
  font-size: .8rem;
  color: var(--clr-muted);
  display: block;
  padding: .3rem 0;
  transition: color .15s;
  border-bottom: none;     /* override any inherited border */
}
.mrp-footer-list a:hover { color: var(--clr-primary); }

/* ═══════════════════════════════════════════════════════════
   ARTICLE CONTENT LISTS — restore bullets intentionally
   Override the global li { list-style: none } reset with
   higher specificity for content inside review articles.
═══════════════════════════════════════════════════════════ */
.mrp-entry-content ul > li {
  list-style: disc;
  display: list-item;
}
.mrp-entry-content ol > li {
  list-style: decimal;
  display: list-item;
}

/* ═══════════════════════════════════════════════════════════
   DESIGN SYSTEM v2 — 10x VISUAL ENHANCEMENTS
   Philosophy: depth, warmth, motion — zero extra HTTP requests,
   zero layout reflow, zero CWV cost.
   All transitions use compositor-only properties
   (transform, opacity) or fire only on hover (box-shadow).
═══════════════════════════════════════════════════════════ */

/* ── 1. FEATURED THUMB — cinematic bottom gradient overlay ── */
/*
 * Without this, poster images end abruptly.
 * The gradient dissolves the image into the card body below —
 * exactly how magazine covers and movie posters handle it.
 * Uses a pseudo-element so NO extra element in the HTML.
 */
.mrp-featured__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 45%,
    rgba(0,0,0,.45) 100%
  );
  pointer-events: none;
}

/* ── 2. CARD IMAGE — warmer, subtler zoom on hover ── */
.mrp-card__thumb img {
  transition: transform .4s var(--ease);
}
.mrp-card:hover .mrp-card__thumb img {
  transform: scale(1.05);
}

/* ── 3. SIDE STORY — hover depth + left accent bar ── */
.mrp-side-story {
  transition: background .2s var(--ease);
  position: relative;
}
.mrp-side-story::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--clr-primary);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .2s var(--ease);
}
.mrp-side-story:hover {
  background: rgba(204,0,0,.025);
}
.mrp-side-story:hover::before {
  transform: scaleY(1);
}

/* ── 4. EDITORIAL LIST ITEMS — hover accent bar ── */
/*
 * Left red bar that slides in on hover — a pattern used by
 * Wirecutter, Stratechery, and every premium editorial site.
 * The bar signals "interactive" without needing an underline
 * (which would clutter the numbered list layout).
 */
.mrp-editorial-item {
  position: relative;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.mrp-editorial-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg, var(--clr-primary) 0%, rgba(204,0,0,.3) 100%
  );
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .22s var(--ease);
  border-radius: 0 2px 2px 0;
}
.mrp-editorial-item:hover {
  background: rgba(204,0,0,.025);
  transform: translateX(3px);
}
.mrp-editorial-item:hover::before {
  transform: scaleY(1);
}

/* ── 5. READ REVIEW LINK — animated underline ── */
/*
 * The link already has "→" appended via ::after.
 * Add a sliding underline via a second pseudo approach:
 * use text-decoration-color transition (no layout, compositor-safe).
 */
.mrp-read-link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}
.mrp-read-link:hover {
  text-decoration-color: var(--clr-primary);
}

/* ── 6. FOOTER — gradient top border ── */
/*
 * A solid border-top on the footer is heavy and repetitive.
 * A gradient that starts at primary red and dissolves to transparent
 * is the NYT / The Guardian pattern — it marks the end of editorial
 * content and anchors the brand colour one final time.
 */
.mrp-footer {
  /* Override the solid border set elsewhere */
  border-top: none;
  /* 2px gradient "rule" using background — no border needed */
  background-image: linear-gradient(
    90deg,
    var(--clr-primary) 0%,
    rgba(204,0,0,.2) 35%,
    rgba(204,0,0,0) 65%
  );
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: top left;
}

/* ── 7. OTT CARD — hover lift to match article cards ── */
.mrp-card--ott,
.mrp-cinema-card {
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.mrp-card--ott:hover,
.mrp-cinema-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

/* ── 8. SUBSCRIBE BUTTON — spring easing on hover ── */
.mrp-subscribe-btn {
  transition: background .2s var(--ease), transform .18s var(--ease-spring);
}
.mrp-subscribe-btn:hover {
  transform: scale(1.04);
}
.mrp-subscribe-btn:active {
  transform: scale(.97);
}

/* ── 9. REDUCED MOTION — disable all motion cleanly ── */
@media (prefers-reduced-motion: reduce) {
  .mrp-editorial-item,
  .mrp-editorial-item::before,
  .mrp-side-story,
  .mrp-side-story::before,
  .mrp-card,
  .mrp-card__thumb img,
  .mrp-read-link,
  .mrp-subscribe-btn,
  .mrp-card--ott,
  .mrp-cinema-card {
    transition: none !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   WORDPRESS SIDEBAR WIDGETS — full styling pass
   ─────────────────────────────────────────────────────────
   register_sidebar() outputs class="mrp-widget" on each
   widget wrapper and class="mrp-widget__title" on titles.
   The CSS previously only covered .mrp-sidebar-widget —
   this block bridges the gap and styles all widget internals.
═══════════════════════════════════════════════════════════ */

/* Widget card container */
.mrp-widget {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem .9rem;
  box-shadow: var(--shadow-sm);
}

/* Widget title — gradient rule matching section headings */
.mrp-widget__title {
  font-family: var(--ff-serif);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--clr-text);
  padding-bottom: .55rem;
  margin-bottom: .85rem;
  /* Same gradient-fade rule as .mrp-section-heading */
  background-image: linear-gradient(
    90deg,
    var(--clr-primary) 0%,
    rgba(204,0,0,.15) 50%,
    rgba(204,0,0,0) 100%
  );
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: bottom left;
}

/* ── SEARCH WIDGET ── */
/* WordPress Search widget outputs:
   <form role="search" class="search-form">
     <label><span>Search</span><input type="search" class="search-field"></label>
     <button type="submit" class="search-submit">Search</button>
   </form>
*/
.mrp-widget .search-form {
  display: flex;
  gap: .4rem;
}
.mrp-widget .search-form label {
  flex: 1; display: flex;
}
.mrp-widget .search-form .search-field {
  flex: 1;
  width: 100%;
  padding: .45rem .65rem;
  font-size: .8rem;
  font-family: var(--ff-sans);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--clr-surface);
  color: var(--clr-text);
  outline: none;
  transition: border-color .2s var(--ease);
}
.mrp-widget .search-form .search-field:focus {
  border-color: var(--clr-primary);
  background: var(--clr-bg);
}
.mrp-widget .search-form .search-submit {
  padding: .45rem .75rem;
  background: var(--clr-primary);
  color: var(--clr-white);
  font-size: .75rem;
  font-weight: 700;
  font-family: var(--ff-sans);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: background .2s var(--ease);
  white-space: nowrap;
}
.mrp-widget .search-form .search-submit:hover {
  background: var(--clr-primary-d);
}
/* Hide the redundant "Search" text label — input is self-evident */
.mrp-widget .search-form label > span.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ── RECENT POSTS WIDGET ── */
/* WordPress outputs: <ul class="wp-widget-recent-posts">
     <li><a href="...">Post title</a>
       <span class="post-date">Date</span>
     </li>
   </ul>
*/
.mrp-widget .wp-widget-recent-posts,
.mrp-widget ul {                 /* catch all list-based widgets */
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mrp-widget .wp-widget-recent-posts li,
.mrp-widget ul li {
  list-style: none;
  border-bottom: 1px solid var(--clr-border);
  padding: .55rem 0;
}
.mrp-widget .wp-widget-recent-posts li:last-child,
.mrp-widget ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.mrp-widget .wp-widget-recent-posts li a,
.mrp-widget ul li a {
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--clr-text);
  display: block;
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.mrp-widget .wp-widget-recent-posts li a:hover,
.mrp-widget ul li a:hover {
  color: var(--clr-primary);
  transform: translateX(2px);
}
/* Post date under the title */
.mrp-widget .wp-widget-recent-posts .post-date,
.mrp-widget ul li .post-date {
  font-size: .68rem;
  color: var(--clr-muted);
  margin-top: .15rem;
  display: block;
}

/* ── CATEGORIES / ARCHIVES WIDGET ── */
/* These also output <ul><li><a> + count */
.mrp-widget .wp-block-archives-list a,
.mrp-widget .wp-block-categories-list a {
  font-size: .82rem;
  color: var(--clr-text);
}
.mrp-widget .wp-block-archives-list a:hover,
.mrp-widget .wp-block-categories-list a:hover {
  color: var(--clr-primary);
}

/* ── GENERIC TEXT / HTML WIDGET ── */
.mrp-widget p {
  font-size: .8rem;
  color: var(--clr-muted);
  line-height: 1.6;
}

/* Gap between widgets — override sidebar flex gap if needed */
.mrp-sidebar {
  gap: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   INFINITE SCROLL — stream, loader, divider
═══════════════════════════════════════════════════════════════════════ */

/* Stream wrapper — takes article's place in the grid column */
.mrp-scroll-stream {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

/* Sentinel — invisible, zero height, just a trigger point */
.mrp-scroll-sentinel {
  height: 1px;
  visibility: hidden;
  pointer-events: none;
}

/* ── "Up Next" divider between injected posts ─────────────────────── */
.mrp-scroll-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0 2.5rem;
  color: var(--clr-muted);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.mrp-scroll-divider::before,
.mrp-scroll-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--clr-border);
}
.mrp-scroll-divider span {
  white-space: nowrap;
  padding: .3rem .75rem;
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  background: var(--clr-surface);
  color: var(--clr-primary);
}

/* ── Three-dot loader ─────────────────────────────────────────────── */
.mrp-scroll-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  height: 64px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mrp-scroll-loader--active {
  opacity: 1;
}
.mrp-scroll-loader span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-primary);
  animation: mrpDotPulse 1.2s ease-in-out infinite;
}
.mrp-scroll-loader span:nth-child(2) { animation-delay: .2s; }
.mrp-scroll-loader span:nth-child(3) { animation-delay: .4s; }

@keyframes mrpDotPulse {
  0%, 80%, 100% { transform: scale(.6); opacity: .4; }
  40%           { transform: scale(1);  opacity: 1;  }
}

@media (prefers-reduced-motion: reduce) {
  .mrp-scroll-loader span { animation: none; opacity: .6; }
}

/* Injected articles: clear any top margin from the h2 element */
.mrp-entry--injected .mrp-entry-title {
  margin-top: 0;
}
/* Injected featured image: add spacing above content */
.mrp-entry--injected .mrp-entry-thumb {
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mrp-entry--injected .mrp-entry-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
