/* Shared advertisement geometry only; no navigation, movie-card or player controls. */
html body.front.portal .cms-ad-wrap { display: block; margin: 0 !important; padding: 0 !important; min-height: 0 !important; background: transparent !important; border: 0 !important; }
html body.front.portal .cms-ad-fit { box-sizing: border-box !important; background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; min-height: 0 !important; max-height: none !important; line-height: 0 !important; }
html body.front.portal .cms-ad-fit::before,
html body.front.portal .cms-ad-fit::after { content: none !important; }
html body.front.portal .cms-ad-fit .cms-ad-media { box-sizing: border-box !important; display: block !important; position: relative !important; inset: auto !important; transform: none !important; flex: none !important; margin: 0 auto !important; padding: 0 !important; border: 0 !important; min-width: 0 !important; min-height: 0 !important; max-width: 100% !important; max-height: none !important; overflow: hidden !important; line-height: 0 !important; }
html body.front.portal .cms-ad-fit .cms-ad-media > picture,
html body.front.portal .cms-ad-fit .cms-ad-media > picture > img { display: block !important; width: 100% !important; height: 100% !important; min-height: 0 !important; max-height: none !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; position: static !important; transform: none !important; object-fit: contain !important; }
html body.front.portal .cms-ad-fit .cms-ad-frame { position: relative !important; overflow: hidden !important; margin: 0 auto !important; padding: 0 !important; border: 0 !important; line-height: 0 !important; }
html body.front.portal .cms-ad-fit .cms-ad-frame > iframe { position: absolute !important; left: 0 !important; top: 0 !important; right: auto !important; bottom: auto !important; transform-origin: 0 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; min-width: 0 !important; min-height: 0 !important; max-width: none !important; max-height: none !important; }
html body.front.portal [data-cms-ad-empty="true"] { display: none !important; height: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
/* OLETV/Keke: keep the existing poster and typography, only correct alignment/density. */
html:root body.front.portal.tpl-keke.keke-template.detail-page[class] .keke-detail > .keke-poster[class] { align-self: start !important; margin-top: 0 !important; }
html body.front.portal.keke-template .cms-ad-wrap-detail:not([data-cms-ad-empty="true"]) + .keke-section { margin-top: 12px !important; }
html body.front.portal.keke-template .cms-ad-wrap-home:not([data-cms-ad-empty="true"]) + .keke-layout { margin-top: 12px !important; }
html body.front.portal.keke-template .cms-ad-wrap-player { grid-column: 1 / -1; align-self: start; width: 100%; }
@media (min-width: 961px) {
  html body.front.portal.keke-template .cms-ad-wrap-player { grid-column: 1; grid-row: 2; }
  html body.front.portal.keke-template .cms-ad-wrap-player + .oletv-player-side { grid-column: 2; grid-row: 1 / span 2; }
}
html body.front.portal.keke-template .cms-player-heading { display: flex !important; align-items: center !important; gap: 10px !important; width: 100%; min-width: 0; margin: 0 0 6px !important; }
html body.front.portal.keke-template .cms-player-heading > .keke-player-title { flex: 1 1 auto !important; min-width: 0 !important; width: auto !important; margin: 0 !important; overflow-wrap: anywhere; line-height: 1.25 !important; }
html:root body.front.portal.keke-template #keke-player-info .cms-player-heading > .keke-meta { display: flex !important; flex: 0 0 auto !important; align-items: center !important; flex-wrap: nowrap !important; justify-content: flex-end !important; gap: 5px !important; margin: 0 !important; min-width: 0 !important; max-width: 48%; }
html:root body.front.portal.keke-template #keke-player-info .cms-player-heading > .keke-meta > span { display: block !important; flex: 0 1 auto; width: auto !important; min-width: 0 !important; min-height: 0 !important; height: auto !important; max-width: 180px; font-size: 13px !important; line-height: 1.4 !important; padding: 4px 8px !important; border-radius: 999px !important; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; text-align: center !important; }
html:root body.front.portal.keke-template #keke-player-info .cms-player-heading > .keke-meta > span:first-child { flex-shrink: 0; }
@media (max-width: 767px) {
  html body.front.portal.keke-template .cms-player-heading { gap: 6px !important; }
  html:root body.front.portal.keke-template #keke-player-info .cms-player-heading > .keke-meta { gap: 4px !important; }
  html:root body.front.portal.keke-template #keke-player-info .cms-player-heading > .keke-meta > span { font-size: 11px !important; padding: 3px 6px !important; }
}
