/* v3.54.0 Advertising places (app/promo.php, pm.js). Every place has one fixed size; the label "Ad" is part of the drawing.
   v3.55.0 the news hub, a news story, the right column of the news pages, a person's page; the notice keeps clear of players.
   Inside another app's built-in browser (html.pm-in) and for crawlers (html.pm-bot) nothing of this is shown at all. */
.pm-in .pm-slot,.pm-bot .pm-slot,.pm-in .pm,.pm-bot .pm{display:none!important}
.pm-slot{display:block;min-width:0}
html:not(.js) .pm-slot{display:none}   /* without scripts nothing fills them */
.pm-slot.pm-full{aspect-ratio:auto!important;height:auto!important;min-height:0!important}
.pm-code{display:block;text-align:center}.pm-code .pm-tag{display:block;width:max-content;margin:0 auto 4px}
.pm{--pm-bg:#fff;--pm-line:#e4d9f3;--pm-tx:#1d1230;--pm-mu:#6d6480;--pm-tag:#ece4f7;--pm-tagtx:#4b3a6b;--pm-ac:#6a12c4;box-sizing:border-box;color:var(--pm-tx);text-decoration:none;font-family:inherit;-webkit-tap-highlight-color:transparent}
.pm.pm-dk{--pm-bg:#1b1426;--pm-line:#33284a;--pm-tx:#fff;--pm-mu:#b9aecb;--pm-tag:#33284a;--pm-tagtx:#e7dcfb;--pm-ac:#c79bff}
.pm *,.pm *::before{box-sizing:border-box}
.pm:hover{text-decoration:none}
a.pm:focus-visible,.pm a:focus-visible,.pm button:focus-visible{outline:2px solid var(--pm-ac);outline-offset:2px}
.pm-tag{display:inline-block;padding:1px 7px;border-radius:6px;background:var(--pm-tag);color:var(--pm-tagtx);font-size:11px;font-weight:700;font-style:normal;line-height:1.55;letter-spacing:.3px;white-space:nowrap;vertical-align:1px}
.pm-tag.over{position:absolute;left:8px;top:8px;z-index:2;background:#000000b8;color:#fff}
.pm-g1{background:linear-gradient(135deg,#7a12d4,#fc4451)}.pm-g2{background:linear-gradient(135deg,#0f4c81,#19b3a6)}.pm-g3{background:linear-gradient(135deg,#f59e0b,#ef4444)}
.pm-g4{background:linear-gradient(135deg,#166534,#84cc16)}.pm-g5{background:linear-gradient(135deg,#1e293b,#64748b)}.pm-g6{background:linear-gradient(135deg,#be185d,#f472b6)}
.pm-ic{flex:none;display:block;width:44px;height:44px;border-radius:10px;overflow:hidden}
.pm .pm-ic img,.pm .pm-pic,.pm-pic{display:block;width:100%;height:100%;object-fit:cover;transform:none;border:0}
.pm .pm-ic img{position:static;inset:auto}   /* (the player's box places every picture in it over its whole area) */
.pm-tx{flex:1;min-width:0;display:block}
.pm-tx b{display:block;font-size:14px;font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pm-tx small{display:block;margin-top:1px;font-size:12px;line-height:1.45;color:var(--pm-mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pm-tx small .pm-tag{margin-right:5px}
.pm-go{flex:none;display:inline-block;padding:8px 13px;border-radius:999px;border:1px solid var(--pm-ac);color:var(--pm-ac);font-size:13px;font-weight:700;line-height:1;white-space:nowrap}

/* a strip one line high: under the buttons of a watch page, the corner card, the notice */
.pm-strip{display:flex;align-items:center;gap:12px;height:66px;padding:0 12px;border-radius:12px;background:var(--pm-bg);border:1px solid var(--pm-line)}

/* a card in a list: the same shape as a title's card */
.pm-card .pm-box{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;text-align:center;color:#fff}
.pm-card .pm-box.pm-g1{background:linear-gradient(160deg,#7a12d4,#fc4451)}.pm-card .pm-box.pm-g2{background:linear-gradient(160deg,#0f4c81,#19b3a6)}.pm-card .pm-box.pm-g3{background:linear-gradient(160deg,#f59e0b,#ef4444)}
.pm-card .pm-box.pm-g4{background:linear-gradient(160deg,#166534,#84cc16)}.pm-card .pm-box.pm-g5{background:linear-gradient(160deg,#1e293b,#64748b)}.pm-card .pm-box.pm-g6{background:linear-gradient(160deg,#be185d,#f472b6)}
.pm-card .pm-box{transform:none!important}
.pm-card .pm-box .pm-pic{position:absolute;inset:0}
.pm-big{display:block;padding:0 12px;font-size:19px;font-weight:800;line-height:1.25;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.pm-card .pm-cta{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);padding:7px 14px;border-radius:999px;background:#fff;color:#2a0a52;font-size:12.5px;font-weight:700;line-height:1;white-space:nowrap;max-width:88%;overflow:hidden;text-overflow:ellipsis}

/* banners: 16:5 on a phone, 728 x 90 on a computer; drawn by the site when there is no picture */
.pm-ban,.pm-lead{position:relative;display:flex;align-items:center;gap:12px;overflow:hidden;border-radius:14px;color:#fff}
.pm-ban{width:100%;max-width:640px;margin:0 auto;aspect-ratio:16/5;padding:14px 14px 0 18px}
.pm-lead{width:728px;max-width:100%;height:90px;margin:0 auto;padding:8px 20px 0 26px;border-radius:12px}
.pm-ban.pm-img,.pm-lead.pm-img{padding:0}
.pm-ban .pm-pic,.pm-lead .pm-pic{position:absolute;inset:0}
.pm-ban .pm-ic,.pm-lead .pm-ic{width:48px;height:48px;border-radius:12px;box-shadow:0 2px 8px #0003}
.pm-ban .pm-tx b,.pm-lead .pm-tx b{font-size:18px;font-weight:800;line-height:1.25;color:#fff}
.pm-ban .pm-tx small,.pm-lead .pm-tx small{font-size:13px;color:#fff;opacity:.92}
.pm-lead .pm-tx b{font-size:21px}.pm-lead .pm-tx small{font-size:14px}
.pm-ban .pm-go,.pm-lead .pm-go,.pm-rect .pm-go{border:0;background:#fff;color:#2a0a52}
@media(max-width:400px){.pm-ban .pm-tx b{font-size:16px}.pm-ban .pm-ic{display:none}}

/* 300 x 250: beside the episodes on a computer, beside the synopsis, and the pause card */
.pm-rect{position:relative;display:flex;flex-direction:column;justify-content:flex-end;width:300px;max-width:100%;aspect-ratio:6/5;margin:0 auto;padding:18px;border-radius:14px;overflow:hidden;color:#fff}
.pm-rect.pm-img{padding:0}
.pm-rect .pm-pic{position:absolute;inset:0}
.pm-rect .pm-tx{flex:none}
.pm-rect .pm-tx b{font-size:22px;font-weight:800;line-height:1.25;white-space:normal;color:#fff;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.pm-rect .pm-tx small{margin-top:5px;font-size:14px;color:#fff;opacity:.92;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.pm-rect .pm-go{align-self:flex-start;margin-top:12px;padding:9px 16px}

/* a button that closes */
.pm-x{position:absolute;z-index:3;right:6px;top:6px;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:#000000b8;color:#fff;font:400 17px/28px system-ui,sans-serif;text-align:center;cursor:pointer}

/* ---- where the places sit ---- */
.pm-slot[data-pm=strip]{margin:14px 0 4px;min-height:66px}
.pm-slot[data-pm=strip].lead{min-height:66px}
.pm-slot[data-pm=home]{margin:4px 16px 22px;aspect-ratio:16/5;max-width:640px}
.pm-slot[data-pm=mid]{grid-column:1 / -1;margin:6px 0 0;aspect-ratio:16/5;max-width:640px;width:100%;justify-self:center}
.pm-slot[data-pm=side]{display:none}
.pm-slot.only-d{display:none}
.pm-slot[data-pm=list]:empty::before,.pm-slot[data-pm=related]:empty::before{content:"";display:block;aspect-ratio:2/3;border-radius:12px;background:#8882;margin-bottom:47px}
.sd-grid .pm-slot[data-pm=list]:empty::before,.sd-grid .pm-slot[data-pm=related]:empty::before{aspect-ratio:9/13;border-radius:14px;margin-bottom:44px}
.sd-grid>li.pm-li:empty{display:none}
.sw .pm-slot[data-pm=strip]{margin:14px 16px 4px}
/* v3.55.0 news and people: a banner under the live block; one line in the list, after a story, after a person's titles (728 x 90
   where that fits whole, pm.js decides by the room there is); 300 x 250 in the right column once the page has two columns */
.pm-slot[data-pm=news].pm-hub{margin:22px auto -12px;aspect-ratio:16/5;max-width:640px}
.pm-slot[data-pm=news].pm-row{grid-column:1 / -1;min-height:66px;margin:12px 0}
.pm-slot[data-pm=story]{margin:22px 0 0;min-height:66px}
.pm-slot[data-pm=person]{margin:30px 0 0;min-height:66px}
.pm-slot[data-pm=nside]{display:none}
@media(min-width:701px){.pm-slot[data-pm=news].pm-row{margin:0}}
@media(min-width:776px){.pm-slot[data-pm=news].pm-row,.pm-slot[data-pm=story],.pm-slot[data-pm=person]{min-height:90px}}
@media(min-width:1101px){
  .pm-slot[data-pm=nside]{display:block;width:300px;max-width:100%;aspect-ratio:6/5;margin:0 auto 20px}
  .nw-story .pm-slot[data-pm=nside]{margin:0 auto}
}
@media(min-width:1101px) and (max-width:1155px){.pm-slot[data-pm=news].pm-row,.pm-slot[data-pm=story]{min-height:66px}}
@media(min-width:821px){
  .pm-slot[data-pm=news].pm-hub{aspect-ratio:auto;height:90px;max-width:none;margin:28px 0 -8px}
  .pm-slot.only-m{display:none}
  .pm-slot.only-d{display:block}
  .pm-slot[data-pm=strip].lead{min-height:90px;margin:22px 0 0}
  .pm-slot[data-pm=home]{aspect-ratio:auto;height:90px;max-width:none;margin:0 16px 26px}
  .pm-slot[data-pm=side]{display:block;margin:18px auto;width:300px;max-width:100%;aspect-ratio:6/5}
  .sw .pm-slot[data-pm=strip]{margin:16px 0 0}
}
@media(min-width:1100px){
  .detail.has-pm{grid-template-columns:220px minmax(0,1fr) 300px}
  .detail.has-pm .pm-slot[data-pm=mid]{grid-column:3;grid-row:1;aspect-ratio:6/5;width:300px;max-width:none;margin:0;align-self:start}
}

/* ---- in the site's own player (never on the YouTube player) ---- */
.vp .pm{--pm-bg:#120c1cf2;--pm-line:#c79bff55;--pm-tx:#fff;--pm-mu:#b9aecb;--pm-tag:#33284a;--pm-tagtx:#e7dcfb;--pm-ac:#c79bff}
.pm-pause{position:absolute;z-index:6;left:50%;top:9%;transform:translateX(-50%);height:min(250px,34%);aspect-ratio:6/5;max-width:86%;border-radius:14px;box-shadow:0 10px 30px #000a}
.pm-pause .pm-rect{width:100%;height:100%;aspect-ratio:auto;padding:14px}
.pm-pause .pm-rect.pm-img{padding:0}
.pm-pause .pm-rect .pm-tx b{font-size:17px}.pm-pause .pm-rect .pm-tx small{font-size:12.5px}.pm-pause .pm-rect .pm-go{margin-top:8px;padding:7px 13px}
.pm-corner{position:absolute;z-index:6;left:12px;bottom:calc(106px + var(--mk-bot,0px));max-width:min(78%,340px);border-radius:12px;box-shadow:0 8px 22px #0008;animation:pmIn .28s ease-out}
.pm-corner .pm-strip,.pm-notice .pm-strip{height:56px;gap:10px;padding:0 36px 0 8px}
.pm-corner .pm-ic,.pm-notice .pm-ic{width:38px;height:38px}
.pm-corner .pm-tx b{font-size:13px}.pm-corner .pm-tx small{font-size:11px}
.pm-corner .pm-x,.pm-notice .pm-x{top:50%;right:4px;transform:translateY(-50%);width:30px;height:30px;background:none;color:var(--pm-mu);line-height:30px}
.pm-pre{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;color:#fff;overflow:hidden;border-radius:inherit}
.pm-pre .pm-pic{position:absolute;inset:0}
.pm-pre .pm-ic{width:64px;height:64px;border-radius:16px;margin-bottom:16px;box-shadow:0 4px 14px #0004;position:relative}
.pm-pre b.pm-t{position:relative;font-size:clamp(22px,6vw,32px);font-weight:800;line-height:1.2;overflow-wrap:anywhere}
.pm-pre small.pm-s{position:relative;margin-top:8px;font-size:16px;line-height:1.4;opacity:.95}
.pm-pre .pm-tag.over{left:12px;top:12px;font-size:12px;padding:3px 9px}
.pm-pre .pm-go{position:absolute;left:12px;bottom:26px;z-index:2;padding:11px 16px;border:0;background:#fff;color:#2a0a52;font-size:14px}
.pm-pre .pm-skip{position:absolute;right:12px;bottom:26px;z-index:2;padding:10px 16px;border-radius:999px;border:1px solid #ffffff66;background:#000000b8;color:#fff;font:700 14px/1 inherit;cursor:pointer}
.pm-pre .pm-skip[disabled]{opacity:.85;cursor:default}
.pm-pre .pm-bar{position:absolute;left:0;right:0;bottom:0;height:4px;background:#ffffff40;z-index:2}
.pm-pre .pm-bar i{display:block;height:100%;width:0;background:#fff}

/* ---- the small notice: above the bottom bar on a phone, the lower left corner on a computer ---- */
.pm-notice{position:fixed;z-index:23;left:10px;right:10px;bottom:calc(69px + env(safe-area-inset-bottom));border-radius:14px;box-shadow:0 8px 24px #0005;animation:pmIn .28s ease-out}
.pm-notice.by-fab{right:66px}
.pm-notice.pm-try{visibility:hidden;animation:none}   /* in place to be measured, not yet shown */
.pm-notice.no-bar{bottom:calc(12px + env(safe-area-inset-bottom))}
.pm-notice .pm-strip{border-radius:14px}
.pm-notice.out,.pm-corner.out{opacity:0;transform:translateY(14px);transition:opacity .25s,transform .25s}
.pm-pause.out{opacity:0;transition:opacity .2s}
@media(min-width:821px){.pm-notice,.pm-notice.by-fab,.pm-notice.no-bar{left:20px;right:auto;bottom:20px;width:340px}.pm-notice .pm-strip{height:60px}}
@keyframes pmIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.pm-notice,.pm-corner{animation:none}}

/* ---- opened inside another app: the bar that offers the real browser (not an advertisement) ---- */
.pm-open{position:relative;z-index:5;display:flex;align-items:center;gap:10px;padding:9px 8px 9px 14px;background:#c79bff;color:#1a1024;font-size:14px;line-height:1.3}
.pm-open b{flex:1;min-width:0;font-weight:700}
.pm-open small{display:block;font-size:12px;font-weight:500;opacity:.85}
.pm-open button{flex:none;border:0;cursor:pointer;font:inherit}
.pm-open .go{padding:9px 14px;border-radius:999px;background:#1a1024;color:#fff;font-size:13px;font-weight:700;white-space:nowrap}
.pm-open .x{width:34px;height:34px;background:none;color:#1a1024;font-size:20px;line-height:34px;opacity:.7}
.pm-how{position:fixed;inset:0;z-index:120;display:flex;align-items:flex-end;justify-content:center;background:#000a}
.pm-how div{width:100%;max-width:460px;margin:0 10px 14px;padding:20px 20px 16px;border-radius:18px;background:#fff;color:#1d1230;font-size:15px;line-height:1.6}
.pm-how b{display:block;font-size:17px;margin-bottom:8px}
.pm-how ol{margin:0 0 14px;padding-left:22px}
.pm-how button{width:100%;padding:12px;border:0;border-radius:12px;background:#6a12c4;color:#fff;font:700 15px/1 inherit;cursor:pointer}
