/*
Theme Name: Investing Momlife
Theme URI: https://investingmomlife.com
Author: Investing Momlife
Description: Brand-matched theme for Investing Momlife — blush pink, rose gold, and deep rose, pulled from the actual logo.
Version: 2.1-appview
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: investing-momlife
*/

:root {
  --imf-bg: #FEF6F8;          /* light blush pink, lighter than logo bg */
  --imf-bg-card: #ffffff;
  --imf-primary: #9C2F49;     /* deep rose, matches "Mom Life" script + hearts */
  --imf-primary-dark: #7A2038;
  --imf-accent: #C08D6C;      /* rose gold, matches logo ring */
  --imf-accent-light: #E3C6B0;
  --imf-warm: #D98CA0;        /* dusty rose, matches bar-chart icon */
  --imf-text: #1C1414;        /* near-black, matches "Investing" wordmark */
  --imf-muted: #8C6E74;
  --imf-border: #F5DEE3;      /* soft pink hairline, lightened */
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* 3D hover tilt — see assets/tilt.js. Elements with this class get a
   pointer-tracked perspective tilt on hover; harmless no-op on touch. */
.tilt-3d {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  will-change: transform;
}

body {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Iowan Old Style", "Times New Roman", serif;
  background: var(--imf-bg);
  color: var(--imf-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .site-title {
  font-family: "Dancing Script", "Brush Script MT", cursive;
  font-weight: 700;
}

/* Brand typography — matches the logo: serif "Investing" + script "Momlife".
   Dancing Script swapped in for Alex Brush: still a real cursive, but its
   letterforms stay open and connected so it reads cleanly at small sizes. */
.brand-serif { font-family: "Playfair Display", Georgia, serif; font-weight: 700; }
.brand-script {
  font-family: "Dancing Script", "Brush Script MT", cursive;
  font-weight: 700;
  color: var(--imf-warm);
  font-size: 1.35em;
  vertical-align: -0.05em;
}

a { color: var(--imf-primary); }

.site-header {
  background: var(--imf-primary);
  color: var(--imf-accent-light);
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 10px;
  border-bottom: 1px solid var(--imf-accent);
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 8px;
}
.site-header .site-logo {
  height: 90px;
  width: 90px;
  border-radius: 50%;
  display: block;
}
.site-header { padding-top: 12px; padding-bottom: 12px; }
.site-header .site-title {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #fff;
  text-decoration: none;
}
.site-header nav a {
  color: var(--imf-accent-light);
  text-decoration: none;
  margin: 0 0 0 22px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: -apple-system, "Segoe UI", sans-serif;
  white-space: nowrap;
}
.site-header nav a:hover { color: var(--imf-accent); }
@media (max-width: 860px) {
  .site-header nav a { margin: 0 12px 0 0; font-size: 0.72rem; }
}

/* =========================================================================
 * "App view" for phones & tablets. Below 1024px, the header collapses into
 * a compact sticky app-bar (logo + name, no text nav — the bottom tab bar
 * below takes over primary navigation), and a fixed bottom tab bar with
 * icon+label tabs appears, matching the standard iOS/Android app layout.
 *
 * NOTE ON RULE ORDER: this hidden-by-default rule MUST come before the
 * media query. A media query adds no specificity, so an identical selector
 * placed after it wins at every width -- which is exactly the bug that kept
 * the tab bar invisible on real phones while it worked in the static
 * preview (where the order happened to be correct). Do not move it below.
 * ==================================================================== */
/* --- Mobile menu button + slide-in drawer ------------------------------
   Hidden by default (desktop shows the inline nav instead); revealed in the
   same <=1024px media query below. Same rule-order discipline as the tab
   bar: base state first, media query after. */
.imf-menu-toggle { display: none; }
.imf-drawer-overlay { display: none; }
.imf-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(82vw, 320px);
  z-index: 120;
  background: var(--imf-bg-card);
  box-shadow: -8px 0 30px rgba(28,20,20,0.18);
  padding: 18px 22px calc(28px + env(safe-area-inset-bottom, 0px));
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.26s ease;
  visibility: hidden;
}
.imf-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}
.imf-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--imf-border);
  padding-bottom: 12px;
  margin-bottom: 6px;
}
.imf-drawer-title {
  font-family: "Dancing Script", "Brush Script MT", cursive;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--imf-primary);
}
.imf-drawer-close {
  background: none;
  border: none;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--imf-muted);
  cursor: pointer;
  padding: 0 4px;
}
.imf-drawer-close:hover { color: var(--imf-primary); }
.imf-drawer-links { display: flex; flex-direction: column; }
.imf-drawer-links a {
  display: block;
  padding: 13px 2px;
  border-bottom: 1px solid var(--imf-border);
  color: var(--imf-text);
  text-decoration: none;
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
}
.imf-drawer-links a:hover,
.imf-drawer-links a:active { color: var(--imf-primary); }
.imf-drawer-section { margin-top: 22px; }
.imf-drawer-label {
  display: block;
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--imf-muted);
  margin-bottom: 4px;
}
.imf-drawer-email {
  display: block;
  padding: 10px 2px;
  color: var(--imf-primary);
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  word-break: break-all;
}

.imf-app-tabbar { display: none; }

@media (max-width: 1024px) {
  /* Menu button, pushed to the far right of the compact app-bar. */
  .imf-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    width: 40px;
    height: 40px;
    padding: 9px 8px;
    background: none;
    border: none;
    cursor: pointer;
  }
  .imf-menu-bar {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: var(--imf-accent-light);
    transition: transform 0.22s ease, opacity 0.18s ease;
  }
  /* Bars morph into an X while the drawer is open. */
  .imf-menu-toggle[aria-expanded="true"] .imf-menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .imf-menu-toggle[aria-expanded="true"] .imf-menu-bar:nth-child(2) { opacity: 0; }
  .imf-menu-toggle[aria-expanded="true"] .imf-menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .imf-drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(28,20,20,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }
  .imf-drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

  .site-header nav { display: none; }
  .site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    padding: 10px 18px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    justify-content: flex-start;
    gap: 12px;
  }
  .site-header .site-logo { height: 42px; width: 42px; }
  .site-header .site-title { font-size: 1.15rem; }

  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }

  .imf-app-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: #fff;
    border-top: 1px solid var(--imf-border);
    box-shadow: 0 -6px 18px rgba(28,20,20,0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .imf-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 9px 4px 8px;
    text-decoration: none;
    color: var(--imf-muted);
    font-family: -apple-system, "Segoe UI", sans-serif;
    font-size: 0.64rem;
    letter-spacing: 0.01em;
  }
  .imf-tab svg { width: 22px; height: 22px; }
  .imf-tab.is-active { color: var(--imf-primary); }
  .imf-tab:active { color: var(--imf-primary); }
}

/* Boxed hero: a contained rounded rectangle sitting inset from the page
   edges, deliberately narrower than the full-bleed header above it so the
   two read as separate blocks rather than one continuous pink mass. */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px 40px 60px;
  max-width: 1180px;
  margin: 28px auto 0;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(176,141,87,0.15), transparent 60%),
    var(--imf-primary);
  color: #fff;
  box-shadow: 0 14px 40px rgba(28,20,20,0.16);
}
@media (max-width: 1024px) {
  .hero {
    margin: 16px 16px 0;
    padding: 48px 26px 42px;
    border-radius: 12px;
  }
}
@media (max-width: 600px) {
  .hero {
    margin: 12px 12px 0;
    padding: 38px 20px 34px;
    border-radius: 10px;
  }
}

/* Decorative layer: a hand-drawn heart, faint watermark text, and a few
   slow-twinkling sparkles, sitting behind the hero content — lighter than
   the solid pink background so it reads as texture, not competing content. */
.hero-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-deco {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-watermark-logo {
  width: 46%;
  max-width: 380px;
  height: auto;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  user-select: none;
}
@media (max-width: 720px) {
  .hero-watermark-logo { width: 62%; max-width: 260px; }
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}
.hero-logo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.hero-logo.tilt-3d:hover {
  box-shadow: 0 22px 44px rgba(0,0,0,0.35);
}
.hero-content { flex: 1; min-width: 0; }
.hero-content h1,
.hero-content .handle,
.hero-content p.bio { margin-left: 0; margin-right: 0; }
@media (max-width: 720px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 24px; }
  .hero-logo { width: 130px; height: 130px; }
}
.hero h1 {
  font-size: 3.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
}
.hero .handle {
  color: var(--imf-accent);
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0 0 26px;
}
.hero p.bio {
  max-width: 620px;
  margin: 0 auto 34px;
  opacity: 0.85;
  white-space: pre-line;
  font-size: 1.02rem;
}

.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 2px;
  text-decoration: none;
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 6px;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--imf-accent); color: var(--imf-primary-dark); border: 1px solid var(--imf-accent); }
.btn-primary:hover { background: transparent; color: var(--imf-accent); }
.btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-secondary:hover { border-color: var(--imf-accent); color: var(--imf-accent); }

/* Subtle 3D lift/press on buttons — hover raises, click presses back down */
.btn { transform: translateY(0); box-shadow: 0 0 0 rgba(0,0,0,0); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 18px rgba(0,0,0,0.18); }
.btn:active { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.16); }

/* Wraps the real YouTube subscribe-button iframe so it sits inline with the
   other hero buttons instead of a plain link — clicking it is the actual
   YouTube subscribe action, not a link to the channel page. */
.subscribe-embed {
  display: inline-block;
  vertical-align: middle;
  margin: 6px;
  transform: translateY(2px);
}
.subscribe-embed iframe { display: block; border: 0; }

main { max-width: 1040px; margin: 0 auto; padding: 64px 24px; }

section { margin-bottom: 80px; }
section h2 {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--imf-primary);
  text-align: center;
  margin: 0 0 8px;
}
section > h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--imf-accent);
  margin: 18px auto 34px;
}

.video-embed {
  background: var(--imf-bg-card);
  border: 1px solid var(--imf-border);
  box-shadow: 0 12px 32px rgba(36,24,20,0.06);
  overflow: hidden;
}
.video-embed iframe { width: 100%; height: 480px; border: 0; display: block; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}
.card {
  background: var(--imf-bg-card);
  border: 1px solid var(--imf-border);
  border-top: 2px solid var(--imf-accent);
  box-shadow: 0 10px 28px rgba(36,24,20,0.05);
  padding: 30px 26px;
}
.card h3 {
  color: var(--imf-warm);
  font-weight: 400;
  font-size: 1.2rem;
  margin-top: 0;
}
.card p { font-family: -apple-system, "Segoe UI", sans-serif; font-size: 0.92rem; color: var(--imf-muted); }
.video-list { list-style: none; margin: 12px 0 0; padding: 0; }
.video-list li { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--imf-border); }
.video-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.video-list a {
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  color: var(--imf-text);
  text-decoration: none;
  line-height: 1.4;
  display: block;
}
.video-list a:hover { color: var(--imf-warm); }
.video-list li.latest { position: relative; padding-right: 74px; }
.latest-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--imf-accent);
  color: var(--imf-primary-dark);
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}
.video-list-more { margin-top: 4px; }
.video-list-more > summary {
  cursor: pointer;
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--imf-primary);
  list-style: none;
  padding-top: 4px;
}
.video-list-more > summary::-webkit-details-marker { display: none; }
.video-list-more > summary:hover { color: var(--imf-warm); }
.video-list-more[open] > summary { margin-bottom: 8px; }
.video-list-more .video-list { margin-top: 0; }
.card .badge {
  display: inline-block;
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--imf-accent);
  border: 1px solid var(--imf-accent);
  padding: 4px 12px;
  margin-bottom: 14px;
}

.brand-deals-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--imf-bg-card);
  border: 1px solid var(--imf-border);
  border-top: 2px solid var(--imf-accent);
  box-shadow: 0 10px 28px rgba(36,24,20,0.05);
  padding: 34px 36px;
}
.brand-deals-box p {
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 0.94rem;
  color: var(--imf-text);
}

.disclosure {
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: var(--imf-muted);
  background: transparent;
  border-top: 1px solid var(--imf-border);
  padding: 18px 0 0;
}

/* Standalone disclosures page (page-disclosures.php). Larger, more readable
   type than the old footer-of-homepage treatment -- this is now a page
   people actually land on and read, not fine print at the bottom. */
.disclosure-page {
  max-width: 760px;
  margin: 0 auto;
  background: var(--imf-bg-card);
  border: 1px solid var(--imf-border);
  border-radius: 6px;
  padding: 40px 44px;
  box-shadow: 0 8px 26px rgba(36,24,20,0.05);
}
.disclosure-page .disclosure {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--imf-text);
  border-top: none;
  padding: 0;
  margin: 0;
}
.disclosure-extra {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--imf-border);
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--imf-text);
}
.disclosure-extra h2,
.disclosure-extra h3 { color: var(--imf-primary); }

/* Optional WP-editor content on the standalone pages (Work With Me,
   Newsletter) — rendered below the Customizer-driven copy. */
.page-extra {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--imf-border);
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  line-height: 1.8;
}
.page-extra h2,
.page-extra h3 { color: var(--imf-primary); }
.newsletter .page-extra,
.newsletter .page-extra h2,
.newsletter .page-extra h3 { color: #fff; border-color: rgba(255,255,255,0.25); }
@media (max-width: 720px) {
  .disclosure-page { padding: 26px 22px; }
}

.newsletter {
  background: var(--imf-primary);
  color: #fff;
  padding: 56px 40px;
  text-align: center;
}
.newsletter h2 { color: #fff; }
.newsletter h2::after { background: var(--imf-accent); }
.newsletter p { font-family: -apple-system, "Segoe UI", sans-serif; opacity: 0.8; font-size: 0.92rem; }
.newsletter form { margin-top: 20px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.newsletter input[type=email] {
  padding: 13px 18px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  width: 280px;
  max-width: 100%;
  font-family: -apple-system, "Segoe UI", sans-serif;
}
.newsletter input[type=email]::placeholder { color: rgba(255,255,255,0.5); }

.site-footer {
  text-align: center;
  padding: 40px 24px 60px;
  color: var(--imf-muted);
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  border-top: 1px solid var(--imf-border);
  letter-spacing: 0.02em;
}

/* "See all N videos" link — replaces the old in-place expander, now
   navigates to the /videos/ topic archive instead of unfolding in place. */
.see-all-link {
  display: inline-block;
  margin-top: 10px;
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--imf-primary);
  text-decoration: none;
}
.see-all-link:hover { color: var(--imf-warm); }

.back-link {
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--imf-primary);
  text-decoration: none;
}
.back-link:hover { color: var(--imf-warm); }

/* Topic directory cards on /videos/ with no ?topic= set */
.topic-dir-card {
  display: block;
  text-decoration: none;
  text-align: center;
}
.topic-dir-card p {
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: var(--imf-muted);
  margin: 4px 0 0;
}

/* Topic archive thumbnail grid — like a YouTube playlist page */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  max-width: 1040px;
  margin: 0 auto;
}

/* Latest Videos slider: horizontally-scrolling strip of .topic-thumb cards
   (same card styling as the grid, just fixed-width and laid out in a row
   with snap-scrolling). Swipes natively on touch; arrow buttons on
   pointer/desktop scroll it programmatically. */
.imf-slider-wrap {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.imf-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 10px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--imf-accent) transparent;
}
.imf-slider::-webkit-scrollbar { height: 6px; }
.imf-slider::-webkit-scrollbar-thumb { background: var(--imf-accent); border-radius: 4px; }
.imf-slider .topic-thumb {
  flex: 0 0 200px;
  scroll-snap-align: start;
}
@media (max-width: 720px) {
  .imf-slider .topic-thumb { flex-basis: 62vw; }
}
.imf-slider-arrow {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--imf-border);
  background: var(--imf-bg-card);
  color: var(--imf-primary);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(36,24,20,0.08);
}
.imf-slider-arrow:hover { background: var(--imf-accent-light); }
@media (max-width: 640px) {
  /* Touch swipe already works; arrows just add clutter on small screens. */
  .imf-slider-arrow { display: none; }
}

.topic-thumb {
  background: var(--imf-bg-card);
  border: 1px solid var(--imf-border);
  padding: 0 0 12px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(36,24,20,0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.topic-thumb:hover .thumb-title { color: var(--imf-warm); }
.thumb-wrap { position: relative; display: block; aspect-ratio: 9 / 16; background: #000; }
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(28,20,20,0.55);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  padding-left: 3px;
}
.thumb-wrap .latest-tag { position: absolute; top: 8px; left: 8px; right: auto; }
.thumb-title {
  display: block;
  padding: 10px 12px 0;
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--imf-text);
}

/* On-page video modal — plays the video without leaving the site */
.imf-modal { position: fixed; inset: 0; z-index: 9999; }
.imf-modal[hidden] { display: none; }
.imf-modal-backdrop { position: absolute; inset: 0; background: rgba(20,12,12,0.82); }
.imf-modal-box {
  position: relative;
  max-width: 420px;
  width: 90%;
  margin: 5vh auto;
  background: #000;
}
.imf-modal-frame { position: relative; width: 100%; aspect-ratio: 9 / 16; }
.imf-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.imf-modal-close {
  position: absolute;
  top: -40px; right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
