/* ESTACIO R8: only external Shorts. The original native classes, icons,
   reactions and menus are reused; no provider controls are overlaid or clipped.
   The iframe uses the entire available rectangular player slot. The provider
   alone controls any letterboxing of its aspect ratio. */
body.shortsMode .shortSlide.akbarEmbeddedShortSlide{
 display:flex;justify-content:center;width:100%;height:100%;min-height:100%;max-height:100%;padding:0;
}
body.shortsMode .shortSlide.akbarEmbeddedShortSlide>.shortWrap{
 display:grid;grid-template-areas:"player" "chrome";grid-template-columns:minmax(0,1fr);
 grid-template-rows:minmax(0,1fr) auto;position:relative;width:100%;max-width:none;
 min-height:0;height:100%;max-height:none;margin:0;overflow:hidden;border:0;border-radius:0;background:#000;gap:0;
}
body.shortsMode .akbarEmbeddedShortSlide .shortMedia.akbarEmbeddedShortMedia{
 position:relative;inset:auto;grid-area:player;width:100%;height:100%;min-height:0;min-width:0;
 display:block;overflow:hidden;padding:0;margin:0;border:0;aspect-ratio:auto;background:#000;
}
.akbarEmbeddedShortSlide .akbarExternalShortMount{
 position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;max-width:none;max-height:none;
 aspect-ratio:auto;overflow:hidden;
}
.akbarEmbeddedShortSlide .akbarExternalShortMount iframe{
 position:absolute;inset:0;display:block;width:100%;height:100%;border:0;
 max-width:none;max-height:none;aspect-ratio:auto;background:#000;pointer-events:auto;
}
.akbarEmbeddedShortSlide .akbarExternalPlay{
 position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);
 z-index:2;min-width:130px;max-width:90%;white-space:normal;
}
.akbarEmbeddedShortSlide .akbarExternalPlay[hidden]{display:none!important}

/* Mobile: familiar native icons/counts and matriculation in one compact,
   independent action strip. Unlike the old grid, the enrollment is not a
   full-width second bar, and metadata does not create a giant third block. */
.akbarEmbeddedShortSlide .akbarEmbeddedChrome{
 grid-area:chrome;min-width:0;min-height:0;width:100%;margin:0;
 padding:0 env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);
 background:#101820;color:#fff;overflow:auto;max-height:min(48dvh,250px);touch-action:pan-y;
}
body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedChrome .shortActions.akbarLocalShortActions{
 position:relative;inset:auto;transform:none;z-index:auto;direction:inherit;display:grid;
 grid-template-columns:repeat(5,minmax(40px,1fr)) minmax(86px,1.8fr);grid-template-rows:auto;
 align-items:center;justify-content:stretch;gap:0;width:100%;max-width:none;
 min-width:0;max-height:none;margin:0;padding:0 4px;border:0;border-radius:0;background:transparent;box-shadow:none;
}
body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shortAction,
body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shortMoreActions{
 display:flex;position:relative;flex-direction:column;justify-content:center;align-items:center;
 gap:1px;width:100%;min-width:40px;height:44px;min-height:44px;margin:0;padding:2px 0;
 border:0;border-radius:8px;color:#fff;background:transparent;text-shadow:none;
}
body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shortAction svg,
body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shortMoreActions>summary svg{width:23px;height:23px}
body.shortsMode .akbarEmbeddedShortSlide .shortActions>.likeShort{grid-row:1;grid-column:1}
body.shortsMode .akbarEmbeddedShortSlide .shortActions>.dislikeShort{grid-row:1;grid-column:2}
body.shortsMode .akbarEmbeddedShortSlide .shortActions>.commentsShort{grid-row:1;grid-column:3}
body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shareShort{grid-row:1;grid-column:4}
body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shortMoreActions{grid-row:1;grid-column:5}
body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shortAction[aria-pressed=true]{color:#a7f3d0}
body.shortsMode .akbarEmbeddedShortSlide .shortActions>:is(.likeShort,.dislikeShort,.commentsShort)>.actionText{
 position:static;width:auto;height:auto;clip-path:none;overflow:visible;line-height:1;
 white-space:nowrap;font-size:10px;font-weight:600;
}
body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shortAction>.actionText::before{content:none}
body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shortMoreActions>summary{
 width:100%;min-height:44px;display:grid;place-items:center;padding:0;background:transparent;color:white;
}
body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shortEnroll{
 grid-column:6;grid-row:1;justify-self:stretch;align-self:center;min-width:0;width:100%;max-width:none;
 min-height:38px;height:auto;padding:4px 5px;margin:0;line-height:1.15;font-size:11px;font-weight:700;
 border:0;border-radius:999px!important;background:#087f42;color:#fff!important;white-space:normal;overflow-wrap:anywhere;
}
/* The expanded secondary actions stay in the chrome and reflow the player
   instead of floating in front of an external iframe. */
body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shortMoreActions[open]{
 grid-column:1/-1;grid-row:2;width:100%;height:auto;display:block;order:0;
}
body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shortMoreActions[open]>summary{
 min-height:32px;justify-content:end;padding:0 8px;
}
body.shortsMode .akbarEmbeddedShortSlide .shortActions .shortMorePanel{
 position:static;inset:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;
 width:100%;max-width:none;max-height:120px;overflow:auto;margin:0;padding:0 3px 3px;
 background:transparent;box-shadow:none;border:0;border-radius:0;
}
body.shortsMode .akbarEmbeddedShortSlide .shortActions .shortMorePanel .shortAction{
 display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:6px;
 min-width:0;width:100%;height:auto;min-height:40px;padding:4px 6px;margin:0;
 background:#1a2834;border-radius:6px;font-size:11px;color:#fff;
}
body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedChrome .shortInfo{
 position:relative;inset:auto;transform:none;grid-row:auto;z-index:auto;display:grid;
 grid-template-columns:38px minmax(0,1fr) 38px 80px;align-items:center;gap:2px;
 width:100%;min-width:0;max-width:none;max-height:none;margin:0;padding:1px 4px 3px;
 background:transparent;border:0;border-radius:0;overflow:visible;text-shadow:none;
}
.akbarEmbeddedShortSlide .akbarEmbeddedMeta{min-width:0;grid-column:2;grid-row:1}
body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedMeta .shortTitle{
 display:block;min-width:0;max-height:none;margin:0;font-size:13px;line-height:1.25;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff;
}
body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedMeta .shortTeacher{
 display:flex;flex-wrap:wrap;align-items:center;min-width:0;min-height:0;gap:2px 4px;margin:0;padding:0;
}
body.shortsMode .akbarEmbeddedShortSlide .shortTeacherIdentity{
 display:flex;flex:1 1 auto;align-items:center;min-width:0;min-height:23px;gap:4px;
}
body.shortsMode .akbarEmbeddedShortSlide .shortTeacherPortrait{width:22px;height:22px;flex:0 0 22px}
body.shortsMode .akbarEmbeddedShortSlide .shortTeacherName{
 max-width:none;min-width:0;font-size:12px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.akbarEmbeddedShortSlide .shortTeacher .schoolEnrollmentStatus,
.akbarEmbeddedShortSlide .shortTeacher .schoolProgressLink{font-size:10px;line-height:1.2;margin:0}
.akbarEmbeddedShortSlide .shortTeacher .schoolEnrollmentStatus:empty{display:none}
.akbarEmbeddedShortSlide .akbarEmbeddedHome,
.akbarEmbeddedShortSlide .akbarEmbeddedPager button,
body.shortsMode .akbarEmbeddedShortSlide .shortInfo .shortDescription>summary{
 display:grid;place-items:center;min-height:38px;min-width:38px;width:100%;margin:0;padding:0;
 color:#fff;background:transparent;border:0;border-radius:8px;cursor:pointer;text-decoration:none;
}
.akbarEmbeddedShortSlide .akbarEmbeddedHome{grid-column:1;grid-row:1}
.akbarEmbeddedShortSlide .akbarEmbeddedHome svg{transform:rotate(90deg);width:21px;height:21px}
.akbarEmbeddedShortSlide .akbarEmbeddedPager{grid-column:4;grid-row:1;display:grid;grid-template-columns:1fr 1fr;gap:0}
.akbarEmbeddedShortSlide .akbarEmbeddedPager svg{width:19px;height:19px}
.akbarEmbeddedShortSlide .akbarEmbeddedPrev svg{transform:rotate(180deg)}
.akbarEmbeddedShortSlide .akbarEmbeddedNext svg{transform:none}
body.shortsMode .akbarEmbeddedShortSlide .shortInfo .shortDescription{
 grid-column:3;grid-row:1;position:relative;inset:auto;min-width:0;margin:0;padding:0;
}
body.shortsMode .akbarEmbeddedShortSlide .shortInfo .shortDescription[open]{
 grid-column:1/-1;grid-row:2;width:100%;max-width:none;max-height:120px;overflow:auto;
 padding:0 6px;background:#1a2834;border-radius:6px;
}
body.shortsMode .akbarEmbeddedShortSlide .shortInfo .shortDescription[open]>summary{justify-content:end}
.akbarEmbeddedShortSlide .akbarEmbeddedOrigin{font-size:11px;color:#bde3ff;overflow-wrap:anywhere}
.akbarEmbeddedShortSlide .shortDescriptionTitle{font-size:12px}
.akbarEmbeddedShortSlide .shortDesc{font-size:11px;line-height:1.3;margin:2px 0}

/* A dedicated side rail is viable only with extra horizontal space; it
   mirrors the supplied Android original without shrinking a portrait phone. */
@media (min-width:801px), (orientation:landscape) and (max-height:540px){
 body.shortsMode .shortSlide.akbarEmbeddedShortSlide>.shortWrap{
  grid-template-areas:"player chrome";grid-template-columns:minmax(0,1fr) minmax(140px,180px);
  grid-template-rows:minmax(0,1fr);width:min(100%,calc(56.25dvh + 180px));max-width:none;
 }
 .akbarEmbeddedShortSlide .akbarEmbeddedChrome{height:100%;max-height:none;display:flex;flex-direction:column;justify-content:flex-start;gap:6px;overflow:auto}
 body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedChrome .shortActions.akbarLocalShortActions{
  grid-template-columns:repeat(2,minmax(44px,1fr));grid-auto-rows:auto;
 }
 body.shortsMode .akbarEmbeddedShortSlide .shortActions>.likeShort{grid-column:1;grid-row:1}
 body.shortsMode .akbarEmbeddedShortSlide .shortActions>.dislikeShort{grid-column:2;grid-row:1}
 body.shortsMode .akbarEmbeddedShortSlide .shortActions>.commentsShort{grid-column:1;grid-row:2}
 body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shareShort{grid-column:2;grid-row:2}
 body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shortMoreActions{grid-column:1/-1;grid-row:3}
 body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shortMoreActions[open]{grid-column:1/-1;grid-row:4}
 body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shortEnroll{grid-column:1/-1;grid-row:5}
 body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedChrome .shortInfo{grid-template-columns:38px minmax(0,1fr) 38px;grid-template-rows:auto auto}
 .akbarEmbeddedShortSlide .akbarEmbeddedMeta{grid-column:1/-1;grid-row:1}
 .akbarEmbeddedShortSlide .akbarEmbeddedHome{grid-column:1;grid-row:2}
 .akbarEmbeddedShortSlide .akbarEmbeddedPager{grid-column:2;grid-row:2}
 body.shortsMode .akbarEmbeddedShortSlide .shortInfo .shortDescription{grid-column:3;grid-row:2}
 body.shortsMode .akbarEmbeddedShortSlide .shortInfo .shortDescription[open]{grid-column:1/-1;grid-row:3}
}
/* The floating Home/game/help controls belong to the original local view,
   not to a third-party player. Restore them as soon as a native slide opens. */
body.shortsMode:has(.shortsFull[data-akbar-external-active="true"]) :is(.shortExit,#akbar-game-card,.akbarBot01HelpLaunch){
 display:none!important;
}
.akbarBookingReport ol{max-height:240px;overflow:auto;padding-inline-start:24px;overflow-wrap:anywhere}

/* R10: a native AKBAR sound retry/toggle beside metadata (only official YT
   API ready). No change to provider controls, action strip or video slot. */
body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedChrome .shortInfo:has(>.akbarEmbeddedSound:not([hidden])){
 grid-template-columns:38px minmax(0,1fr) 38px 38px 80px;
}
body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedSound{
 grid-column:3;grid-row:1;display:grid;place-items:center;min-height:38px;min-width:38px;
 width:100%;margin:0;padding:0;background:transparent;border:0;color:#fff;cursor:pointer;
}
body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedSound[hidden]{display:none!important}
body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedSound svg{width:21px;height:21px}
body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedSound.akbarShortSoundBlocked{color:#ffd788}
body.shortsMode .akbarEmbeddedShortSlide .shortInfo:has(>.akbarEmbeddedSound:not([hidden])) .shortDescription{grid-column:4}
body.shortsMode .akbarEmbeddedShortSlide .shortInfo:has(>.akbarEmbeddedSound:not([hidden])) .shortDescription[open]{grid-column:1/-1}
body.shortsMode .akbarEmbeddedShortSlide .shortInfo:has(>.akbarEmbeddedSound:not([hidden])) .akbarEmbeddedPager{grid-column:5}
@media (min-width:801px), (orientation:landscape) and (max-height:540px){
 body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedChrome .shortInfo:has(>.akbarEmbeddedSound:not([hidden])){
  grid-template-columns:38px minmax(0,1fr) 38px;
 }
 body.shortsMode .akbarEmbeddedShortSlide .shortInfo:has(>.akbarEmbeddedSound:not([hidden])) .akbarEmbeddedMeta{grid-column:1/3}
 body.shortsMode .akbarEmbeddedShortSlide .shortInfo:has(>.akbarEmbeddedSound:not([hidden])) .shortDescription{grid-column:3;grid-row:2}
 body.shortsMode .akbarEmbeddedShortSlide .shortInfo:has(>.akbarEmbeddedSound:not([hidden])) .shortDescription[open]{grid-column:1/-1;grid-row:3}
 body.shortsMode .akbarEmbeddedShortSlide .shortInfo:has(>.akbarEmbeddedSound:not([hidden])) .akbarEmbeddedPager{grid-column:2;grid-row:2}
}


.akbarEmbedForm textarea {
 box-sizing: border-box;
 width: 100%;
 min-width: 0;
 max-width: 100%;
 border: 1px solid #605166;
 border-radius: 12px;
 background: #211923;
 color: #fff5fc;
 padding: .75rem;
 resize: vertical;
 font-size: 16px;
}
.akbarEmbedForm textarea:focus-visible {
 outline: 2px solid #ff8c83;
 outline-offset: 2px;
}
.akbarEmbedForm progress { width: 100%; }
.akbarEmbedForm .akbarBookingReport { overflow-wrap: anywhere; }

/* 2026-12-04: same AKBAR vertical actions, but keep the official iframe
   unobstructed. Metadata gets one compact strip; actions no longer consume a
   second strip below the video. The side rail is scrollable on short screens. */
body.shortsMode .shortSlide.akbarEmbeddedShortSlide>.shortWrap{
 display:grid;grid-template-areas:"player rail" "meta rail";
 grid-template-columns:minmax(0,1fr) 76px;
 grid-template-rows:minmax(0,1fr) auto;
 width:100%;max-width:none;height:100%;min-height:0;gap:0;
 direction:ltr;
}
body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedChrome{display:contents}
body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedChrome .shortActions.akbarLocalShortActions{
 grid-area:rail;position:relative;inset:auto;display:flex;flex-flow:column nowrap;
 align-items:center;justify-content:flex-start;justify-content:safe flex-end;align-self:stretch;
 width:100%;min-width:0;min-height:0;max-width:none;max-height:none;
 gap:4px;padding:6px 3px max(6px,env(safe-area-inset-bottom,0px));
 overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
 background:#101820;color:#fff;border:0;
}
body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shortAction,
body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shortMoreActions{
 display:flex;flex:0 0 auto;flex-direction:column;align-items:center;justify-content:center;
 width:48px;min-width:44px;min-height:44px;height:auto;gap:2px;
}
body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shortAction svg,
body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shortMoreActions>summary svg{width:25px;height:25px}
body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shortEnroll{
 width:100%;min-width:0;min-height:44px;padding:4px 2px;
 white-space:normal;overflow-wrap:anywhere;font-size:11px;
}
body.shortsMode .akbarEmbeddedShortSlide .shortActions>.shortMoreActions[open]{
 width:100%;min-height:44px;height:auto;display:flex;flex-direction:column;
}
body.shortsMode .akbarEmbeddedShortSlide .shortActions .shortMorePanel{
 position:static;display:flex;flex-direction:column;grid-template-columns:none;
 width:100%;max-height:none;overflow:visible;padding:0;margin:0;
}
body.shortsMode .akbarEmbeddedShortSlide .shortActions .shortMorePanel .shortAction{
 min-height:44px;padding:3px 1px;flex-direction:column;gap:2px;
 font-size:10px;white-space:normal;text-align:center;overflow-wrap:anywhere;
}
body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedChrome .shortInfo,
body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedChrome .shortInfo:has(>.akbarEmbeddedSound:not([hidden])){
 grid-area:meta;position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:0 3px;
 width:100%;min-width:0;min-height:0;max-height:min(24dvh,110px);overflow:auto;
 padding:3px 4px max(3px,env(safe-area-inset-bottom,0px));
 background:#101820;color:#fff;
}
body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedMeta{flex:1 1 110px;min-width:0}
body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedHome,
body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedSound,
body.shortsMode .akbarEmbeddedShortSlide .shortInfo .shortDescription>summary{
 flex:0 0 44px;min-width:44px;width:44px;min-height:44px;
}
body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedPager{flex:0 0 88px;display:flex}
body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedPager button{width:44px;min-width:44px;min-height:44px}
body.shortsMode .akbarEmbeddedShortSlide .shortInfo .shortDescription[open]{flex:1 0 100%}
[dir=rtl] body.shortsMode .akbarEmbeddedShortSlide .akbarEmbeddedMeta,
body.shortsMode[dir=rtl] .akbarEmbeddedShortSlide .akbarEmbeddedMeta{direction:rtl}
@media(min-width:801px){
 body.shortsMode .shortSlide.akbarEmbeddedShortSlide>.shortWrap{
  width:min(100%,calc(56.25dvh + 100px));grid-template-columns:minmax(0,1fr) 86px;
 }
}
