.mobilk-favorites-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:19px;
  height:19px;
  padding:0 5px;
  margin-inline-start:3px;
  border:1px solid rgba(255,255,255,.62);
  border-radius:999px;
  background:#e50a8e;
  color:#fff;
  font-size:11px;
  font-style:normal;
  font-weight:800;
  line-height:1;
  box-sizing:border-box;
}

.mobilk-favorites-backdrop{
  position:fixed;
  inset:0;
  z-index:10040;
  display:block;
  visibility:hidden;
  opacity:0;
  border:0;
  background:rgba(13,26,45,.58);
  transition:opacity .2s ease,visibility .2s ease;
}

.mobilk-favorites-backdrop.is-open{
  visibility:visible;
  opacity:1;
}

.mobilk-favorites-panel{
  position:fixed;
  top:0;
  bottom:0;
  z-index:10050;
  display:flex;
  flex-direction:column;
  width:min(430px,100%);
  max-width:100%;
  background:#fff;
  color:#16243a;
  visibility:hidden;
  transition:transform .24s ease,visibility .24s ease;
  box-sizing:border-box;
}

html[dir="rtl"] .mobilk-favorites-panel{
  right:0;
  border-left:1px solid #dce3eb;
  transform:translateX(100%);
}

html[dir="ltr"] .mobilk-favorites-panel{
  left:0;
  border-right:1px solid #dce3eb;
  transform:translateX(-100%);
}

.mobilk-favorites-panel.is-open{
  visibility:visible;
  transform:translateX(0)!important;
}

body.mobilk-favorites-open{
  overflow:hidden;
}

.mobilk-favorites-panel-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:76px;
  padding:16px 18px;
  border-bottom:1px solid #e2e7ed;
  background:#132b4c;
  color:#fff;
}

.mobilk-favorites-panel-heading{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
}

.mobilk-favorites-panel-heading .m-icon{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
}

.mobilk-favorites-panel-heading h2{
  margin:0;
  color:#fff;
  font-size:20px;
  line-height:1.3;
}

.mobilk-favorites-panel-heading small{
  display:block;
  margin-top:3px;
  color:#dce6f2;
  font-size:12px;
}

.mobilk-favorites-close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  padding:0;
  border:1px solid rgba(255,255,255,.35);
  border-radius:12px;
  background:transparent;
  color:#fff;
  cursor:pointer;
}

.mobilk-favorites-close .m-icon{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
}

.mobilk-favorites-actions{
  display:grid;
  grid-template-columns:1fr auto;
  gap:9px;
  padding:13px 16px;
  border-bottom:1px solid #e5e9ef;
  background:#f7f9fb;
}

.mobilk-favorites-actions button{
  min-height:42px;
  padding:9px 13px;
  border:1px solid #ccd5df;
  border-radius:10px;
  background:#fff;
  color:#132b4c;
  font:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

.mobilk-favorites-actions [data-mobilk-favorite-current]{
  border-color:#e50a8e;
  background:#e50a8e;
  color:#fff;
}

.mobilk-favorites-body{
  flex:1;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  padding:14px 16px 24px;
}

.mobilk-favorites-empty{
  padding:54px 20px;
  text-align:center;
}

.mobilk-favorites-empty .m-icon{
  width:46px;
  height:46px;
  margin-bottom:12px;
  fill:none;
  stroke:#e50a8e;
  stroke-width:1.5;
}

.mobilk-favorites-empty h3{
  margin:0 0 7px;
  color:#132b4c;
  font-size:18px;
}

.mobilk-favorites-empty p{
  max-width:290px;
  margin:0 auto;
  color:#68768a;
  font-size:13px;
  line-height:1.8;
}

.mobilk-favorites-list{
  display:grid;
  gap:10px;
}

.mobilk-favorite-item{
  display:grid;
  grid-template-columns:88px minmax(0,1fr);
  gap:11px;
  padding:10px;
  border:1px solid #dfe5ec;
  border-radius:13px;
  background:#fff;
}

.mobilk-favorite-item-image{
  display:block;
  width:88px;
  height:76px;
  overflow:hidden;
  border:1px solid #e1e6ec;
  border-radius:10px;
  background:#f1f4f7;
}

.mobilk-favorite-item-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.mobilk-favorite-item-image.is-placeholder{
  background:linear-gradient(135deg,#f5f7fa 0,#e7edf3 100%);
}

.mobilk-favorite-item-content{
  min-width:0;
}

.mobilk-favorite-item-content small{
  display:block;
  margin-bottom:3px;
  color:#e50a8e;
  font-size:11px;
  font-weight:800;
}

.mobilk-favorite-item-title{
  display:-webkit-box;
  overflow:hidden;
  color:#16243a;
  font-size:13px;
  font-weight:800;
  line-height:1.65;
  text-decoration:none;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.mobilk-favorite-item-content button{
  margin-top:6px;
  padding:0;
  border:0;
  background:transparent;
  color:#6d7888;
  font:inherit;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}

[data-mobilk-favorite].is-favorite{
  color:#e50a8e!important;
}

[data-mobilk-favorite].is-favorite .m-icon{
  fill:currentColor;
}

@media (max-width:600px){
  .mobilk-favorites-panel{
    top:auto;
    width:100%;
    height:min(86vh,760px);
    border-top:1px solid #dce3eb;
    border-left:0!important;
    border-right:0!important;
    border-radius:18px 18px 0 0;
  }

  html[dir="rtl"] .mobilk-favorites-panel,
  html[dir="ltr"] .mobilk-favorites-panel{
    right:0;
    left:0;
    transform:translateY(100%);
  }

  .mobilk-favorites-panel.is-open{
    transform:translateY(0)!important;
  }

  .mobilk-favorites-panel-header{
    min-height:70px;
    padding:13px 15px;
    border-radius:18px 18px 0 0;
  }

  .mobilk-favorites-actions{
    padding:11px 12px;
  }

  .mobilk-favorites-body{
    padding:12px 12px calc(26px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion:reduce){
  .mobilk-favorites-panel,
  .mobilk-favorites-backdrop{
    transition:none;
  }
}

/* Automatic bridge for existing news, game and app favorite controls. */
.mobilk-auto-favorite-control{
  cursor:pointer;
  touch-action:manipulation;
}

.news-feed-meta .mobilk-auto-favorite-control{
  user-select:none;
}

.mobilk-auto-favorite-control.is-favorite,
.mobilk-auto-favorite-control.is-active{
  color:#e50a8e!important;
}

.mobilk-auto-favorite-control.is-favorite .m-icon,
.mobilk-auto-favorite-control.is-active .m-icon{
  fill:currentColor;
  stroke:currentColor;
}

.mobilk-favorite-notice{
  position:fixed;
  z-index:10040;
  right:50%;
  bottom:24px;
  min-width:210px;
  max-width:calc(100% - 28px);
  padding:11px 16px;
  border:1px solid #e50a8e;
  border-radius:12px;
  background:#132b4c;
  color:#fff;
  font-size:13px;
  font-weight:800;
  text-align:center;
  opacity:0;
  pointer-events:none;
  transform:translate(50%,12px);
  transition:opacity .18s ease,transform .18s ease;
}

.mobilk-favorite-notice.is-visible{
  opacity:1;
  transform:translate(50%,0);
}

@media(max-width:600px){
  .mobilk-favorite-notice{
    bottom:calc(78px + env(safe-area-inset-bottom));
  }
}
