/* ==========================================================================
   YTMAXING DAILY NICHE — listing cards + individual niche page
   Everything is scoped to .ytmx-dn-* so the rest of the theme is untouched.
   ========================================================================== */
.ytmx-dn-grid,
.ytmx-dn-page{
  --dn-card:#0d1118; --dn-card2:#131923; --dn-line:rgba(255,255,255,.1);
  --dn-text:#f4f6f9; --dn-muted:#9aa5b4;
  --dn-red:var(--red,#fd1643); --dn-rgb:var(--red-rgb,253,22,67);
  --dn-green:#35d37a; --dn-gold:#f5c451;
  color:var(--dn-text); font-family:inherit; box-sizing:border-box;
}
.ytmx-dn-grid *,.ytmx-dn-page *{ box-sizing:border-box; }
.ytmx-dn-grid a,.ytmx-dn-page a{ text-decoration:none; }
.ytmx-dn-empty{ margin:0; padding:30px 18px; border:1px dashed var(--dn-line); border-radius:16px; text-align:center; color:var(--dn-muted); }

/* ---------- Listing: /daily-viral-niches/ ---------- */
.ytmx-dn-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; width:100%; max-width:1180px; margin:0 auto; padding:8px 0 40px; }
.ytmx-dn-list-card{
  display:flex; flex-direction:column; min-width:0; overflow:hidden;
  border:1px solid var(--dn-line); border-radius:24px;
  background:linear-gradient(160deg,#121823,#0a0d13);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.ytmx-dn-list-card:hover{ transform:translateY(-4px); border-color:rgba(var(--dn-rgb),.5); box-shadow:0 22px 48px rgba(0,0,0,.45); }
.ytmx-dn-list-image{ display:block; position:relative; aspect-ratio:16/10; overflow:hidden; background:#0a0d13; }
.ytmx-dn-list-image img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s ease; }
.ytmx-dn-list-card:hover .ytmx-dn-list-image img{ transform:scale(1.04); }
.ytmx-dn-list-noimg{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:2.6rem; color:var(--dn-red); background:radial-gradient(circle at 50% 40%,rgba(var(--dn-rgb),.22),transparent 70%); }
.ytmx-dn-list-body{ display:flex; flex-direction:column; align-items:flex-start; gap:12px; flex:1; padding:22px; }
.ytmx-dn-list-body h3{ margin:0; font-size:1.3rem; line-height:1.25; font-weight:850; letter-spacing:-.01em; }
.ytmx-dn-list-body h3 a{ color:var(--dn-text); }
.ytmx-dn-card-earnings{ margin:0; font-size:.98rem; line-height:1.5; color:var(--dn-muted); }
.ytmx-dn-card-earnings strong{ color:var(--dn-green); font-size:1.08rem; font-weight:850; }
.ytmx-dn-explore{
  display:flex; align-items:center; justify-content:center; width:100%; min-height:50px; margin-top:auto;
  border-radius:14px; background:linear-gradient(135deg,#ff4452,var(--dn-red) 55%,#c91c2b);
  color:#fff !important; font-weight:800; font-size:1rem; box-shadow:0 10px 26px rgba(var(--dn-rgb),.28);
  transition:filter .18s ease,transform .18s ease;
}
.ytmx-dn-explore:hover{ filter:brightness(1.08); transform:translateY(-1px); }
.ytmx-dn-channel-pill{
  display:inline-flex; align-items:center; gap:8px; max-width:100%; padding:9px 15px;
  border:1px solid rgba(var(--dn-rgb),.45); border-radius:999px; background:rgba(var(--dn-rgb),.1);
  color:#ff7a89 !important; font-size:.9rem; font-weight:700; line-height:1.25;
}
.ytmx-dn-channel-pill:hover{ background:rgba(var(--dn-rgb),.18); }
.ytmx-dn-channel-pill i{ font-style:normal; }

/* ---------- Individual niche page ---------- */
.ytmx-dn-page{ width:100%; max-width:1100px; margin:0 auto; padding:6px 0 60px; }
.ytmx-dn-tag{ display:inline-block; padding:5px 11px; border-radius:999px; font-size:.7rem; font-weight:850; letter-spacing:.12em; }
.ytmx-dn-tag.free{ background:rgba(53,211,122,.14); color:var(--dn-green); }
.ytmx-dn-tag.premium{ background:rgba(var(--dn-rgb),.16); color:#ff7a89; }

.ytmx-dn-hero{
  display:grid; grid-template-columns:200px minmax(0,1fr); gap:28px; align-items:center;
  padding:clamp(20px,3.4vw,38px); border:1px solid var(--dn-line); border-radius:28px;
  background:radial-gradient(520px 260px at 100% 0%,rgba(var(--dn-rgb),.16),transparent 65%),linear-gradient(145deg,#161c27,#0a0d12);
}
.ytmx-dn-hero:not(:has(.ytmx-dn-image)){ grid-template-columns:1fr; }
.ytmx-dn-image{ aspect-ratio:1/1; overflow:hidden; border-radius:22px; border:1px solid var(--dn-line); background:#0a0d13; }
.ytmx-dn-hero-image{ width:100%; height:100%; object-fit:cover; display:block; }
.ytmx-dn-hero-copy h1{ margin:12px 0 12px; font-size:clamp(1.9rem,4.4vw,3rem); line-height:1.08; letter-spacing:-.035em; font-weight:900; color:var(--dn-text); }
.ytmx-dn-desc p{ margin:0 0 10px; font-size:clamp(1rem,1.6vw,1.1rem); line-height:1.7; color:var(--dn-muted); }
.ytmx-dn-desc p:last-child{ margin-bottom:0; }

.ytmx-dn-breakdown{ margin-top:34px; }
.ytmx-dn-breakdown-title{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:0 0 16px; font-size:clamp(1.3rem,2.6vw,1.8rem); font-weight:850; letter-spacing:-.02em; color:var(--dn-text); }
.ytmx-dn-breakdown-title em{ font-style:normal; font-size:.82rem; font-weight:700; color:var(--dn-muted); }

/* Swipeable tabs: ~2 visible on phones */
.ytmx-dn-tabs-wrap{ position:relative; }
.ytmx-dn-tabs{
  display:flex; gap:10px; overflow-x:auto; padding:2px 2px 14px;
  scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain; scrollbar-width:none;
}
.ytmx-dn-tabs::-webkit-scrollbar{ display:none; }
.ytmx-dn-tab{
  flex:0 0 calc(46% - 5px); scroll-snap-align:start;
  display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; gap:10px; min-height:84px; padding:14px 16px; text-align:left; cursor:pointer;
  border:1px solid var(--dn-line); border-radius:18px; background:linear-gradient(160deg,#121823,#0b0f15); color:var(--dn-text); font-family:inherit;
  transition:border-color .18s ease,background .18s ease,transform .18s ease;
}
.ytmx-dn-tab:hover{ border-color:rgba(var(--dn-rgb),.45); }
.ytmx-dn-tab-name{ font-size:.98rem; font-weight:800; line-height:1.3; }
.ytmx-dn-tab-name i{ font-style:normal; }
.ytmx-dn-tab-badge{ padding:3px 9px; border-radius:999px; font-size:.64rem; font-weight:850; letter-spacing:.1em; background:rgba(53,211,122,.14); color:var(--dn-green); }
.ytmx-dn-tab.is-premium .ytmx-dn-tab-badge{ background:rgba(var(--dn-rgb),.16); color:#ff7a89; }
.ytmx-dn-tab.is-active{ border-color:var(--dn-red); background:linear-gradient(160deg,rgba(var(--dn-rgb),.28),#0d1118); box-shadow:0 10px 28px rgba(var(--dn-rgb),.25); }
.ytmx-dn-tab.is-locked{ opacity:.92; }
.ytmx-dn-tab:focus-visible{ outline:2px solid #fff; outline-offset:2px; }
@media (min-width:720px){ .ytmx-dn-tab{ flex-basis:calc(33.333% - 7px); } }
@media (min-width:1024px){ .ytmx-dn-tab{ flex-basis:calc(16.666% - 9px); min-width:150px; } }

.ytmx-dn-tab-panel{ display:none; padding:clamp(20px,3vw,32px); border:1px solid var(--dn-line); border-radius:24px; background:linear-gradient(160deg,#101620,#0a0d13); }
.ytmx-dn-tab-panel.is-active{ display:block; animation:ytmxDnFade .3s ease; }
@keyframes ytmxDnFade{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
.ytmx-dn-tab-panel h3{ margin:12px 0 18px; font-size:clamp(1.3rem,2.4vw,1.7rem); font-weight:850; letter-spacing:-.02em; color:var(--dn-text); }
.ytmx-dn-tab-panel h4{ margin:0 0 12px; font-size:1.05rem; font-weight:800; color:var(--dn-text); }
.ytmx-dn-detail{ margin-top:22px; }

/* basic info */
.ytmx-dn-facts{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; }
.ytmx-dn-fact{ display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding:20px; border:1px solid var(--dn-line); border-radius:18px; background:rgba(255,255,255,.025); }
.ytmx-dn-fact > span{ font-size:.78rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--dn-muted); }
.ytmx-dn-fact strong{ font-size:clamp(1.8rem,4vw,2.4rem); line-height:1.1; font-weight:900; color:var(--dn-green); }
.ytmx-dn-fact small{ color:var(--dn-muted); }
.ytmx-dn-basic-note{ margin:18px 0 0; font-size:.92rem; color:var(--dn-muted); }

/* ratings */
.ytmx-dn-ratings{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.ytmx-dn-rating{ position:relative; isolation:isolate; overflow:hidden; padding:22px; border:1px solid rgba(255,255,255,.12); border-radius:22px; background:radial-gradient(ellipse at 0% 0%,rgba(var(--dn-rgb),.15),transparent 58%),linear-gradient(145deg,rgba(28,35,49,.96),rgba(10,14,22,.98)); box-shadow:0 12px 28px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.045); transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease; }
.ytmx-dn-rating:before{ content:""; position:absolute; z-index:-1; width:130px; height:130px; right:-55px; top:-65px; border-radius:50%; background:rgba(var(--dn-rgb),.13); filter:blur(30px); pointer-events:none; }
.ytmx-dn-rating:hover{ transform:translateY(-3px); border-color:rgba(var(--dn-rgb),.42); box-shadow:0 16px 34px rgba(0,0,0,.3),0 0 24px rgba(var(--dn-rgb),.09); }
.ytmx-dn-rating > span{ display:block; font-size:.78rem; font-weight:850; letter-spacing:.12em; text-transform:uppercase; color:#b9c2d0; }
.ytmx-dn-rating > strong{ display:inline-flex; align-items:center; margin-top:11px; padding:7px 17px; border:1px solid rgba(245,196,81,.2); border-radius:999px; font-size:1.08rem; font-weight:900; background:linear-gradient(135deg,rgba(245,196,81,.2),rgba(245,196,81,.08)); color:#ffd36a; box-shadow:0 5px 18px rgba(245,196,81,.08); }
.ytmx-dn-rating.is-high > strong,.ytmx-dn-rating.is-super-high > strong{ border-color:rgba(53,211,122,.25); background:linear-gradient(135deg,rgba(53,211,122,.24),rgba(53,211,122,.09)); color:#50e99a; box-shadow:0 5px 18px rgba(53,211,122,.1); }
.ytmx-dn-rating.is-low > strong{ border-color:rgba(154,165,180,.2); background:linear-gradient(135deg,rgba(154,165,180,.2),rgba(154,165,180,.07)); color:#d0d7e2; }
.ytmx-dn-rating p{ position:relative; margin:13px 0 0; font-size:.94rem; line-height:1.7; color:#b5bfcd; }
.ytmx-dn-revenue{ margin:20px 0 6px; font-size:1.05rem; }
.ytmx-dn-revenue strong{ color:var(--dn-green); }
.ytmx-dn-disclaimer{ margin:0; font-size:.85rem; line-height:1.6; color:var(--dn-muted); }
.ytmx-dn-proscons{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.ytmx-dn-proscons .ytmx-dn-detail{ margin-top:22px; padding:18px; border:1px solid var(--dn-line); border-radius:18px; background:rgba(255,255,255,.025); }
.ytmx-dn-proscons .is-pros{ border-color:rgba(53,211,122,.3); }
.ytmx-dn-proscons .is-cons{ border-color:rgba(255,170,60,.3); }

/* lists */
.ytmx-dn-list{ margin:0; padding:0 0 0 1.3em; display:grid; gap:10px; }
.ytmx-dn-list li{ font-size:1rem; line-height:1.6; color:#cfd6df; padding-left:4px; }
ol.ytmx-dn-list li::marker{ color:var(--dn-red); font-weight:850; }

/* resource cards (monetization + tools) */
.ytmx-dn-resource-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:14px; }
.ytmx-dn-resource-card{ display:flex; flex-direction:column; gap:10px; padding:20px; border:1px solid var(--dn-line); border-radius:18px; background:rgba(255,255,255,.025); }
.ytmx-dn-resource-logo{ width:56px; height:56px; display:flex; align-items:center; justify-content:center; overflow:hidden; border-radius:14px; background:#fff; padding:6px; }
.ytmx-dn-resource-logo img{ max-width:100%; max-height:100%; object-fit:contain; display:block; }
.ytmx-dn-resource-card h4{ margin:0; font-size:1.1rem; }
.ytmx-dn-resource-card p{ margin:0; font-size:.94rem; line-height:1.6; color:var(--dn-muted); }
.ytmx-dn-resource-link{ margin-top:auto; padding-top:6px; font-weight:800; font-size:.95rem; color:#ff7a89 !important; }

/* prompts */
.ytmx-dn-prompt{ position:relative; margin:0 0 12px; padding:16px 92px 16px 18px; border:1px solid var(--dn-line); border-radius:16px; background:#080b10; }
.ytmx-dn-prompt p{ margin:0; font-size:.96rem; line-height:1.65; color:#d5dbe3; white-space:pre-wrap; overflow-wrap:anywhere; }
.ytmx-dn-copy{ position:absolute; top:12px; right:12px; min-height:34px; padding:0 14px; border:1px solid rgba(var(--dn-rgb),.5); border-radius:10px; background:rgba(var(--dn-rgb),.12); color:#fff; font-family:inherit; font-size:.82rem; font-weight:800; cursor:pointer; }
.ytmx-dn-copy.is-copied{ background:#1f9d5c; border-color:#1f9d5c; }
.ytmx-dn-roadmap{ font-size:1.02rem; line-height:1.75; color:#cfd6df; }
.ytmx-dn-roadmap h2,.ytmx-dn-roadmap h3,.ytmx-dn-roadmap h4{ color:var(--dn-text); margin:1.2em 0 .5em; }
.ytmx-dn-roadmap a{ color:#ff7a89; }

/* lock */
.ytmx-dn-lock{ display:flex; flex-direction:column; align-items:center; gap:10px; padding:clamp(28px,5vw,54px) 14px; text-align:center; }
.ytmx-dn-lock-icon{ width:68px; height:68px; display:flex; align-items:center; justify-content:center; border-radius:20px; background:rgba(var(--dn-rgb),.14); font-size:1.9rem; }
.ytmx-dn-lock h3{ margin:6px 0 0; }
.ytmx-dn-lock p{ max-width:480px; margin:0; font-size:1rem; line-height:1.6; color:var(--dn-muted); }
.ytmx-dn-unlock{ display:inline-flex; align-items:center; justify-content:center; min-height:50px; margin-top:8px; padding:0 28px; border-radius:14px; background:linear-gradient(135deg,#ff4452,var(--dn-red) 55%,#c91c2b); color:#fff !important; font-weight:800; box-shadow:0 10px 26px rgba(var(--dn-rgb),.3); }
.ytmx-dn-redirect-note{ display:none; margin-top:4px; color:var(--dn-gold); font-weight:700; }
.ytmx-dn-redirect-note.is-visible{ display:block; }

/* ---------- Responsive ---------- */
@media (max-width:1000px){ .ytmx-dn-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:680px){
  .ytmx-dn-grid{ grid-template-columns:1fr; gap:16px; }
  .ytmx-dn-hero{ grid-template-columns:1fr; border-radius:22px; }
  .ytmx-dn-image{ max-width:180px; }
  .ytmx-dn-ratings,.ytmx-dn-proscons{ grid-template-columns:1fr; }
  .ytmx-dn-tab-panel{ border-radius:20px; padding:18px; }
  .ytmx-dn-prompt{ padding-right:18px; padding-bottom:58px; }
  .ytmx-dn-copy{ top:auto; bottom:12px; right:12px; }
}
@media (prefers-reduced-motion:reduce){ .ytmx-dn-tab-panel.is-active{ animation:none; } .ytmx-dn-list-card,.ytmx-dn-list-image img{ transition:none; } }

/* ==========================================================================
   v1.2.0 — designed headings, custom red icons, full-width thumbnails
   ========================================================================== */

/* Safety net: hide the theme's plain page title on our pages (PHP also blanks it). */
html body main#main:has(.ytmx-dn-page) h1.entry-title,
html body main#main:has(.ytmx-dn-page) h1.page-title,
html body main#main:has(.ytmx-dn-grid) h1.entry-title,
html body main#main:has(.ytmx-dn-grid) h1.page-title,
html body main#main:has(.ytmx-dn-head) h1.entry-title:empty,
html body main#main:has(.ytmx-dn-head) h1.page-title:empty{ display:none !important; }

/* ---------- Custom icons (replace Android emoji) ---------- */
.ytmx-dn-ico{ display:inline-block; flex:0 0 auto; width:1.15em; height:1.15em; vertical-align:-.2em; overflow:visible; }
.ytmx-dn-ico-flame .o{ fill:var(--dn-red); }
.ytmx-dn-ico-flame .i{ fill:#ffd0d7; opacity:.95; }
.ytmx-dn-ico-flame{ filter:drop-shadow(0 0 6px rgba(var(--dn-rgb),.7)); }
.ytmx-dn-ico-flame.is-inline{ width:1.05em; height:1.05em; margin-right:.45em; vertical-align:-.12em; }
.ytmx-dn-ico-point{ display:inline-block; flex:0 0 auto; width:23px; height:23px; vertical-align:-.28em; overflow:visible; filter:drop-shadow(0 0 5px rgba(var(--dn-rgb),.58)); }
.ytmx-dn-hand-fill{ fill:rgba(var(--dn-rgb),.20); stroke:none; }
.ytmx-dn-hand-line{ fill:none; stroke:#ff315c; stroke-width:1.55; stroke-linecap:round; stroke-linejoin:round; }
.ytmx-dn-ico-lock{ display:inline-block; width:1em; height:1em; vertical-align:-.16em; fill:none; stroke:#ff315c; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 0 4px rgba(var(--dn-rgb),.55)); }
.ytmx-dn-ico-lock.is-tab{ width:.9em; height:.9em; }
.ytmx-dn-ico-lock.is-panel{ width:2.2rem; height:2.2rem; }
.ytmx-dn-channel-pill{ gap:9px; }
.ytmx-dn-channel-pill span{ min-width:0; }

/* ---------- Heading block (centered) ---------- */
.ytmx-dn-head{ display:flex; flex-direction:column; align-items:center; text-align:center; width:100%; max-width:820px; margin:0 auto 28px; padding:0 4px; }

/* Red bubble title: [flame] DAILY VIRAL NICHES */
.ytmx-dn-badge{
  display:inline-flex; align-items:center; gap:12px; margin:0; max-width:100%;
  padding:9px 26px 9px 10px; border-radius:999px;
  border:1px solid rgba(var(--dn-rgb),.5);
  background:linear-gradient(160deg,rgba(var(--dn-rgb),.26),rgba(var(--dn-rgb),.08) 70%,rgba(255,255,255,.03));
  box-shadow:0 0 0 4px rgba(var(--dn-rgb),.06),0 14px 40px rgba(var(--dn-rgb),.22),inset 0 0 18px rgba(var(--dn-rgb),.1);
  color:#fff; font-size:clamp(.92rem,3.8vw,1.35rem); font-weight:900; letter-spacing:.14em; line-height:1.15; text-transform:uppercase; text-shadow:0 0 18px rgba(var(--dn-rgb),.55);
}
.ytmx-dn-badge-ico{
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto;
  width:clamp(34px,9vw,46px); height:clamp(34px,9vw,46px); border-radius:50%;
  background:radial-gradient(circle at 50% 45%,rgba(var(--dn-rgb),.38),rgba(6,6,6,.6) 75%);
  border:1.5px solid rgba(var(--dn-rgb),.6); box-shadow:0 0 18px rgba(var(--dn-rgb),.45),inset 0 0 10px rgba(var(--dn-rgb),.2);
}
.ytmx-dn-badge-ico .ytmx-dn-ico{ width:58%; height:58%; vertical-align:0; }
.ytmx-dn-badge-text{ min-width:0; }

/* Space reserved under the title for your text (empty = just spacing) */
.ytmx-dn-head-sub{ margin:14px 0 0; min-height:34px; max-width:620px; font-size:clamp(.98rem,2.6vw,1.1rem); line-height:1.6; color:var(--dn-muted); }
.ytmx-dn-head-sub:empty{ min-height:34px; }

/* Single niche page heading */
.ytmx-dn-head-single{ margin-bottom:22px; }
.ytmx-dn-kicker{
  display:inline-flex; align-items:center; gap:9px; padding:6px 16px 6px 7px; border-radius:999px;
  border:1px solid rgba(var(--dn-rgb),.45); background:linear-gradient(160deg,rgba(var(--dn-rgb),.22),rgba(var(--dn-rgb),.06));
  color:var(--dn-red); font-size:.74rem; font-weight:900; letter-spacing:.16em;
  box-shadow:0 8px 26px rgba(var(--dn-rgb),.16);
}
.ytmx-dn-kicker-ico{ display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:50%; background:rgba(var(--dn-rgb),.22); }
.ytmx-dn-kicker-ico .ytmx-dn-ico{ width:15px; height:15px; vertical-align:0; }
.ytmx-dn-title{
  margin:16px 0 0; font-size:clamp(2.1rem,9vw,3.6rem); line-height:1.04; letter-spacing:-.04em; font-weight:900;
  color:#fff; background:linear-gradient(180deg,#fff 30%,#ffc9d1 120%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  text-shadow:none; overflow-wrap:anywhere;
}
.ytmx-dn-title-bar{ display:block; width:84px; height:5px; margin-top:16px; border-radius:999px; background:linear-gradient(90deg,#ff4452,var(--dn-red),#c91c2b); box-shadow:0 0 18px rgba(var(--dn-rgb),.7); }

.ytmx-dn-breakdown-label{ display:inline-flex; align-items:center; }

/* ---------- Thumbnails: full width, never cropped ---------- */
/* Niche page card: thumbnail on top at full card width, then tag + description */
.ytmx-dn-hero,
.ytmx-dn-hero:not(:has(.ytmx-dn-image)){ grid-template-columns:minmax(0,1fr); gap:22px; align-items:start; }
.ytmx-dn-image{ width:100%; max-width:none !important; aspect-ratio:auto !important; background:transparent; border-radius:20px; }
.ytmx-dn-hero-image,
.ytmx-dn-image img{ display:block; width:100% !important; height:auto !important; max-width:100%; object-fit:contain; border-radius:inherit; }

/* Listing cards: full-width, uncropped thumbnail */
.ytmx-dn-list-image{ aspect-ratio:auto !important; background:#0a0d13; }
.ytmx-dn-list-image img{ position:static !important; inset:auto !important; width:100% !important; height:auto !important; object-fit:contain !important; display:block; }
.ytmx-dn-list-noimg{ position:relative; min-height:170px; }

@media (max-width:680px){
  .ytmx-dn-image{ max-width:none !important; }
  .ytmx-dn-head{ margin-bottom:22px; }
  .ytmx-dn-badge{ padding:8px 20px 8px 8px; gap:10px; letter-spacing:.11em; }
}

/* FIX: the heading blocks sit outside .ytmx-dn-page/.ytmx-dn-grid, so they need the colour variables too */
.ytmx-dn-head{ --dn-red:var(--red,#fd1643); --dn-rgb:var(--red-rgb,253,22,67); --dn-muted:#9aa5b4; --dn-text:#f4f6f9; color:var(--dn-text); box-sizing:border-box; font-family:inherit; }
.ytmx-dn-head *{ box-sizing:border-box; }
/* Theme page title that we replace (class added by frontend.js) */
.ytmx-dn-theme-title{ display:none !important; }
.ytmx-dn-badge-ico .ytmx-dn-ico{ width:68%; height:68%; }
.ytmx-dn-kicker-ico .ytmx-dn-ico{ width:17px; height:17px; }
.ytmx-dn-breakdown-label{ display:inline !important; }
.ytmx-dn-breakdown-label .ytmx-dn-ico{ vertical-align:-.15em; }

/* Client-requested refinements */
.ytmx-dn-head-list .ytmx-dn-head-sub{max-width:680px;min-height:0;margin:12px 0 4px;line-height:1.55}
.ytmx-dn-list-image{aspect-ratio:16/9;padding:10px;background:linear-gradient(145deg,#101722,#080b10)}
.ytmx-dn-list-image img{object-fit:contain;inset:5%;width:90%;height:90%;border-radius:10px}
.ytmx-dn-explore{position:relative;isolation:isolate;overflow:hidden;border:1px solid rgba(255,255,255,.24);background:linear-gradient(115deg,#ff6876 0%,#fd1643 45%,#a90e2a 100%);box-shadow:0 8px 24px rgba(var(--dn-rgb),.34),inset 0 1px 0 rgba(255,255,255,.35)}
.ytmx-dn-explore:before{content:"";position:absolute;z-index:-1;top:-60%;left:-35%;width:35%;height:220%;transform:rotate(25deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);transition:left .5s ease}
.ytmx-dn-explore:hover:before{left:120%}
.ytmx-dn-ico-point{width:22px;height:22px;font-size:19px;stroke:none;fill:none}
.ytmx-dn-consult-card>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:linear-gradient(115deg,#ff6876,#fd1643 55%,#a90e2a);color:#fff!important;font-weight:850;box-shadow:0 8px 22px rgba(var(--dn-rgb),.3),inset 0 1px 0 rgba(255,255,255,.35);cursor:pointer}
.ytmx-dn-consult-card{margin-top:24px;padding:22px;border:1px solid rgba(var(--dn-rgb),.42);border-radius:18px;background:radial-gradient(450px 150px at 100% 0%,rgba(var(--dn-rgb),.2),transparent 70%),linear-gradient(145deg,#171d29,#0a0d13);box-shadow:0 12px 30px rgba(0,0,0,.24)}
.ytmx-dn-consult-label{display:inline-flex;padding:7px 12px;border-radius:999px;background:linear-gradient(120deg,#ff5369,#c91436);color:#fff;font-size:.82rem;font-weight:850}
.ytmx-dn-consult-card h4{margin:14px 0 8px;color:#fff;font-size:1.15rem}.ytmx-dn-consult-card p{color:var(--dn-muted);line-height:1.65}.ytmx-dn-consult-card .ytmx-dn-consult-urgent{color:#ff8292;font-weight:800}
.ytmx-dn-consult-card>a{text-decoration:none!important}
.ytmx-dn-ideas-intro{color:var(--dn-muted);line-height:1.55}

/* Rating-description fields in the WordPress editor */
.ytmx-dn-rating-notes-fields{ margin-top:18px; }
.ytmx-dn-rating-notes-fields .ytmx-dn-box{ padding:18px; border:1px solid rgba(253,22,67,.2); border-radius:16px; background:linear-gradient(145deg,rgba(253,22,67,.045),rgba(255,255,255,.015)); }
@media (max-width:719px){ .ytmx-dn-ratings{ grid-template-columns:1fr; gap:13px; } .ytmx-dn-rating{ padding:20px; border-radius:20px; } }


/* Free-member Course Upgrade offer — placed after the full niche breakdown */
.ytmx-dn-course-offer{position:relative;isolation:isolate;overflow:hidden;box-sizing:border-box;margin:26px 0 30px;padding:clamp(20px,4vw,32px);border:1px solid rgba(253,22,67,.58);border-radius:24px;background:radial-gradient(560px 220px at 100% 0%,rgba(253,22,67,.25),transparent 70%),linear-gradient(145deg,#191d29 0%,#0b0d13 72%);box-shadow:0 16px 42px rgba(0,0,0,.34),0 0 30px rgba(253,22,67,.13);color:#f5f6fa}
.ytmx-dn-course-offer *{box-sizing:border-box}.ytmx-dn-course-offer-glow{position:absolute;z-index:-1;right:-90px;top:-130px;width:280px;height:280px;border-radius:50%;background:rgba(253,22,67,.2);filter:blur(65px);pointer-events:none}
.ytmx-dn-course-offer-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.ytmx-dn-course-offer-kicker{color:#ff8798;font-size:.72rem;font-weight:900;letter-spacing:.16em}.ytmx-dn-course-offer-save{padding:7px 12px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:linear-gradient(120deg,#ff5268,#c91035);color:#fff;font-size:.76rem;font-weight:900;box-shadow:0 5px 18px rgba(253,22,67,.28)}
.ytmx-dn-course-offer h2{margin:17px 0 8px;color:#fff;font-size:clamp(1.35rem,3vw,2rem);font-weight:900;line-height:1.15}.ytmx-dn-course-offer-copy{margin:0;color:#b7bfcc;font-size:.96rem;line-height:1.55}.ytmx-dn-course-offer-price{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:17px 0 18px}.ytmx-dn-course-offer-price del{color:#9ba3b0;font-size:1.02rem}.ytmx-dn-course-offer-price strong{color:#48df91;font-size:clamp(2rem,6vw,2.7rem);font-weight:950;letter-spacing:-.04em}.ytmx-dn-course-offer-price span{padding:5px 9px;border-radius:8px;background:rgba(50,211,128,.13);color:#4be39a;font-size:.72rem;font-weight:900}
.ytmx-dn-course-offer-timer-label{margin:10px 0 8px;color:#aeb7c5;font-size:.7rem;font-weight:850;letter-spacing:.16em}.ytmx-dn-course-offer-timer{display:flex;align-items:center;gap:9px;margin-bottom:18px}.ytmx-dn-course-offer-timer>span{display:flex;min-width:66px;flex-direction:column;align-items:center;justify-content:center;padding:9px 12px;border:1px solid rgba(253,22,67,.35);border-radius:12px;background:rgba(255,255,255,.045)}.ytmx-dn-course-offer-timer b{color:#fff;font-size:1.35rem;font-variant-numeric:tabular-nums}.ytmx-dn-course-offer-timer small{margin-top:2px;color:#ff8798;font-size:.58rem;font-weight:900;letter-spacing:.12em}.ytmx-dn-course-offer-timer>i{color:#ff536b;font-style:normal;font-weight:900}.ytmx-dn-course-offer-cta{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:0 22px;border:1px solid rgba(255,255,255,.2);border-radius:13px;background:linear-gradient(115deg,#ff6876,#fd1643 55%,#a90e2a);box-shadow:0 8px 24px rgba(253,22,67,.32),inset 0 1px 0 rgba(255,255,255,.28);color:#fff!important;font-weight:900;text-decoration:none!important;transition:transform .2s ease,filter .2s ease}.ytmx-dn-course-offer-cta:hover{transform:translateY(-2px);filter:brightness(1.08)}
.ytmx-dn-course-offer-marquee{position:relative;overflow:hidden;margin:22px -4px 0;padding:4px 0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}.ytmx-dn-course-offer-track{display:flex;width:max-content;gap:9px;animation:ytmxDnCourseScroll 38s linear infinite}.ytmx-dn-course-offer-marquee:hover .ytmx-dn-course-offer-track{animation-play-state:paused}.ytmx-dn-course-offer-track span{display:inline-flex;align-items:center;gap:7px;flex:none;padding:8px 12px;border:1px solid rgba(253,22,67,.4);border-radius:999px;background:rgba(253,22,67,.12);color:#ffe0e5;font-size:.77rem;font-weight:750;white-space:nowrap}.ytmx-dn-course-offer-track span i{display:inline-flex;width:18px;height:18px;align-items:center;justify-content:center;border-radius:50%;background:rgba(61,220,139,.17);color:#4be39a;font-size:.72rem;font-style:normal;font-weight:950}.ytmx-dn-course-offer-foot{margin:13px 0 0;color:#8993a2;font-size:.7rem;line-height:1.45}@keyframes ytmxDnCourseScroll{to{transform:translateX(-50%)}}
@media(max-width:480px){.ytmx-dn-course-offer{padding:19px 16px;border-radius:19px}.ytmx-dn-course-offer-timer>span{min-width:58px;padding:8px 9px}.ytmx-dn-course-offer-cta{width:100%}}
@media(prefers-reduced-motion:reduce){.ytmx-dn-course-offer-track{animation:none}.ytmx-dn-course-offer-marquee{overflow-x:auto}}
