/* Canvas-фикс: html без фона → body background становится canvas → кружки видны */
html {
  background-color: transparent !important;
}

.page-head-main img {
  transform-origin: center center;
  will-change: transform;
}

.f5info.section {
  margin-bottom: 0;
}

/* Увеличение как будто "на тебя" */
@supports (scale: 1) {
  .page-head-main img {
    animation: zoomDepth 8s ease-in-out infinite;
  }

  @keyframes zoomDepth {
    0% {
      scale: 1;
    }

    50% {
      scale: 1.012;
    }

    100% {
      scale: 1;
    }
  }
}

/* fallback */
@supports not (scale: 1) {
  .page-head-main img {
    animation: zoomDepthFallback 8s ease-in-out infinite;
    transform-origin: center center;
  }

  @keyframes zoomDepthFallback {
    0% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.012);
    }

    100% {
      transform: scale(1);
    }
  }
}

/* ======================== */

@media (max-width: 575px) {
  svg.svg-inline--fa.fa-shapes {
    right: -1px !important;
  }
}

.post__modpaid {
  width: auto !important;
}

span.label.label-up:contains("Новинка") {
  color: #ff372d;
}

.label.label-up.is-novinka {
  color: #ff372d;
}

/* ======================== */

/* ===== 5PLAY CLEAN CHIP (NO BORDER) ===== */

.post__modpaid {
  position: relative;
  display: inline-block;
  font-size: 20px;
  padding-left: 20px;
  color: #fff;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: .2px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}

.post__modpaid::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: .625rem;

  background-color: transparent;

  background-image:
    linear-gradient(115deg,
      rgba(255, 255, 255, .0) 0%,
      rgba(255, 255, 255, .15) 48%,
      rgba(255, 255, 255, .0) 52%),
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, 0) 70%);

  box-shadow:
    0 10px 20px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}

/* ТВОИ ЦВЕТА */
.post__modpaid[data-type='PREMIUM']::before {
  background-color: #c27f0d;
}

.post__modpaid[data-type='TOP']::before {
  background-color: #049e4a;
}

.post__modpaid[data-type='18+']::before {
  background-color: #e51cd0;
}

.post__modpaid[data-type='PRO']::before {
  background-color: #507fff;
}

/* ======================== */

.section-title .c-icon svg {
  animation: tiltSide 3s ease-in-out infinite;
  transform-origin: center;
}

@keyframes tiltSide {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(8deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* ======================== */

.UhideBlock {
  display: none;
}

/* ======================== */

.telegram-link {
  padding: 0;
}

@media (min-width: 991px) {
  img.h-\[40px\].w-\[164px\].sm\:h-\[45px\].sm\:w-\[184px\].md\:h-\[50px\].md\:w-\[205px\].dark-logo.active {
    position: relative;
    padding-right: 0px;
    left: -5px;
  }
}

.logotype {
  position: relative;
  display: inline-block;
}

/* ❤️ зона сердечка */
.bee-wrap {
  position: absolute;
  top: 2px;
  left: 108px;

  width: 34px;
  height: 34px;

  pointer-events: none;
  z-index: 15;
}

/* ❤️ иконка */
.bee {
  position: absolute;

  width: 22px;
  height: auto;

  animation:
    likeFloat 3.2s infinite ease-in-out,
    likePulse 1.8s infinite ease-in-out;
}

/* ❤️ плавное движение */
@keyframes likeFloat {

  0% {
    transform:
      translateY(0) rotate(-4deg);
  }

  25% {
    transform:
      translateY(-2px) rotate(3deg);
  }

  50% {
    transform:
      translateY(-4px) rotate(-2deg);
  }

  75% {
    transform:
      translateY(-1px) rotate(2deg);
  }

  100% {
    transform:
      translateY(0) rotate(-4deg);
  }
}

/* ❤️ пульсация */
@keyframes likePulse {

  0%,
  100% {
    scale: 1;
  }

  50% {
    scale: 1.08;
  }
}

.sel-lang>button {
  width: 2.5rem;
  height: 2.5rem;
  padding: 3px !important;
  border: 0;
}

button.sel-lang__ru img {
  box-shadow: 0 0.2rem 1.5rem -0.3rem #2b9dd5;
}

.sel-lang {
  width: 44px;
  height: 44px;
  left: -1px;
  display: inline-block;
  position: relative;
  right: 0px;
  top: 0px;
  background-color: var(--sel-lang-active) !important;
}

button.sel-lang__ru {
  right: 0;
  position: relative;
  left: 0px;
  display: inline-block;
  top: 0px;
}

@media (min-width: 1260px) {
  .sel-lang>button {
    margin-left: 0 !important;
  }

  .sel-lang {
    border-radius: 30px;
  }

  button.sel-lang__ru {
    top: -1px !important;
    left: 0px !important;
  }
}

@media (min-width: 992px) {

  .sel-dark-toggle:hover,
  .sel-lang>button:not(.active):hover {
    transform: scale(1) !important;
  }
}

.labell {
  position: absolute;
  top: 0;
  left: 0;
  margin: .5rem;
  z-index: 1;
  display: flex;
  align-items: center;
  font-size: .6875rem;
  font-weight: 700;
  background-color: var(--entry-label);
  text-transform: uppercase;
  line-height: 1rem;
  padding: .25rem .5rem;
  border-radius: .75rem;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  pointer-events: none;
}

/* ======================== */

@media(max-width:991px) {
  span.searchheading {
    width: 78% !important;
  }
}

#poisk2 a:hover {
  background: #A3C2DC;
}

#poisk2 a:last-child {
  border-bottom: 0px solid;
}

#poisk2 {
  border: 3px solid #eee;
  position: absolute;
  margin-left: 0px;
  margin-top: 50px;
  display: none;
  font-weight: bold;
  width: 430px;
  box-shadow: 3px 3px 3px #000, inset 3px 3px 3px rgba(0, 0, 0, .9);
  z-index: 100;
}

#poisk2::after {
  border-bottom: 8px solid transparent;
  border-left: 0px solid transparent;
  border-right: 8px solid #eee;
  border-top: 8px solid transparent;
  content: "";
  left: 20px;
  position: absolute;
  top: -15px;
  transform: rotate(90deg);
  writing-mode: tb-rl;
}

#poisk2 span {
  color: #444 !important;
  background: #EEE;
  display: block;
  padding: 8px;
}

#poisk2 input {
  background: #263742 !important;
  color: #fff !important;
  font-weight: bold;
  border: 0px !important;
  cursor: pointer;
  border-radius: 0 !important;
  padding: 2px !important;
  height: 30px;
  width: 100% !important;
  margin: 0px;
}

#poisk2 input:hover {
  background: #315974 !important;
}

#poisk2 a {
  border-bottom: 1px solid #DCDCDC;
  color: #000 !important;
  font-weight: bold;
  text-decoration: none;
  white-space: normal;
  background: #EEE;
  display: block;
  padding: 5px;
  height: auto;
}

/* ======================== */

@media (max-width: 575px) {
  svg.svg-inline--fa.fa-shapes {
    right: -1px !important;
  }
}

.post__modpaid {
  width: auto !important;
}

span.label.label-up:contains("Новинка") {
  color: #ff372d;
}

.label.label-up.is-novinka {
  color: #ff372d;
}

img.avafoto {
  position: absolute !important;
  top: 0 !important;
  left: 50%;
  display: block !important;
  min-width: calc(100% + 1px);
  height: 100% !important;
  transform: translateX(-50%);
  object-fit: cover !important;
  object-position: center center;
  opacity: 1.6 !important;
  filter: blur(0px) !important;
}

/* ======================== */

@media (max-width: 991px) {
  .head-right {
    z-index: 99999;
  }
}

/* ======================== */

.absolute.-top-2.-right-2.bg-blue-500.rounded-full.p-1.border-2.border-white.shadow-sm {
  border-style: solid;
  border-color: #e5e7eb;
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  --tw-bg-opacity: 1;
  background-color: rgb(59 130 246 / 1);
  --tw-border-opacity: 1;
  border-color: rgb(255 255 255 / 1);
  padding: .25rem;
  border-width: 2px;
  border-radius: 9999px;
  top: -14px;
  right: 9px;
  position: absolute;
}

@keyframes spin {
  0% {
    transform: rotate(0)
  }

  to {
    transform: rotate(360deg)
  }
}

svg.w-3.h-3.text-white.update-spin {
  animation: spin 2s linear infinite;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / 1);
  width: .75rem;
  height: .75rem;
  display: block;
  vertical-align: middle;
}

--tw-ring-shadow: 0 0 #0000;
--tw-ring-offset-shadow: 0 0 #0000;

/* ======================== */

@media (max-width:768px) {

  .title-badge {
    padding: 6px 8px;
    background: #3f95ec21;
    border-radius: 12px;
    color: #000;

    margin-left: -9px;
    /* сдвиг влево */

  }

  /* фиолетовая */
  .title-badge.title-apps {
    background: #9c6bff21;
  }

  /* красная */
  .title-badge.title-games {
    background: #ff4d4d21;
  }

  /* голубая */
  .title-badge.title-lastgames {
    background: #2bb3ff21;
  }

  /* зелёная */
  .title-badge.title-recom {
    background: #4ccb7021;
  }

  .darktheme .title-badge {
    color: #fff;
  }

}

@media (max-width:768px) {

  .f5info .title-badge {
    background: #ff3b3b3d;
    color: #000;
  }

  .darktheme .f5info .title-badge {
    color: #fff;
  }

}

/* ======================== */

.entry-app .item::before {
  content: "";
  position: absolute;
  top: 10px;
  right: -20px;
  width: 185px;
  height: 110px;
  background-image: radial-gradient(#4ccb70 2px, transparent 2px);
  background-size: 18px 18px;
  opacity: .0.2;
  filter: blur(.3px);
  pointer-events: none;
}

@media (max-width:768px) {
  .entry-app .item::before {
    top: 1px;
    /* опускаем точки ниже */
    right: 0;
    left: 0;
    bottom: 0;
    opacity: .07;
    background-size: 20px 20px;
    background-position: 0 8px;
    mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
  }
}

/* ======================== */

.entry-app .item::before {
  content: "";
  position: absolute;
  top: 10px;
  right: -20px;
  width: 185px;
  height: 110px;
  background-image: radial-gradient(#4ccb70 2px, transparent 2px);
  background-size: 18px 18px;
  opacity: .0.2;
  filter: blur(.3px);
  pointer-events: none;
}

@media (max-width:768px) {
  .entry-app .item::before {
    top: 1px;
    /* опускаем точки ниже */
    right: 0;
    left: 0;
    bottom: 0;
    opacity: .07;
    background-size: 20px 20px;
    background-position: 0 8px;
    mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
  }
}

/* ======================== */

.entry-app .item::before {
  content: "";
  position: absolute;
  top: 10px;
  right: -20px;
  width: 185px;
  height: 110px;
  background-image: radial-gradient(#4ccb70 2px, transparent 2px);
  background-size: 18px 18px;
  opacity: .0.2;
  filter: blur(.3px);
  pointer-events: none;
}

@media (max-width:768px) {
  .entry-app .item::before {
    top: 1px;
    /* опускаем точки ниже */
    right: 0;
    left: 0;
    bottom: 0;
    opacity: .07;
    background-size: 20px 20px;
    background-position: 0 8px;
    mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
  }
}

/* ======================== */

.entry-app .item::before {
  content: "";
  position: absolute;
  top: 10px;
  right: -20px;
  width: 185px;
  height: 110px;
  background-image: radial-gradient(#4ccb70 2px, transparent 2px);
  background-size: 18px 18px;
  opacity: .0.2;
  filter: blur(.3px);
  pointer-events: none;
}

@media (max-width:768px) {
  .entry-app .item::before {
    top: 1px;
    /* опускаем точки ниже */
    right: 0;
    left: 0;
    bottom: 0;
    opacity: .07;
    background-size: 20px 20px;
    background-position: 0 8px;
    mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
  }
}

/* ======================== */

.entry-app .item::before {
  content: "";
  position: absolute;
  top: 10px;
  right: -20px;
  width: 185px;
  height: 110px;
  background-image: radial-gradient(#4ccb70 2px, transparent 2px);
  background-size: 18px 18px;
  opacity: .0.2;
  filter: blur(.3px);
  pointer-events: none;
}

@media (max-width:768px) {
  .entry-app .item::before {
    top: 1px;
    /* опускаем точки ниже */
    right: 0;
    left: 0;
    bottom: 0;
    opacity: .07;
    background-size: 20px 20px;
    background-position: 0 8px;
    mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
  }
}

/* ======================== */

.entry-app .item::before {
  content: "";
  position: absolute;
  top: 10px;
  right: -20px;
  width: 185px;
  height: 110px;
  background-image: radial-gradient(#4ccb70 2px, transparent 2px);
  background-size: 18px 18px;
  opacity: .0.2;
  filter: blur(.3px);
  pointer-events: none;
}

@media (max-width:768px) {
  .entry-app .item::before {
    top: 1px;
    /* опускаем точки ниже */
    right: 0;
    left: 0;
    bottom: 0;
    opacity: .07;
    background-size: 20px 20px;
    background-position: 0 8px;
    mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
  }
}

/* ======================== */

.entry-app .item::before {
  content: "";
  position: absolute;
  top: 10px;
  right: -20px;
  width: 185px;
  height: 110px;
  background-image: radial-gradient(#4ccb70 2px, transparent 2px);
  background-size: 18px 18px;
  opacity: .0.2;
  filter: blur(.3px);
  pointer-events: none;
}

@media (max-width:768px) {
  .entry-app .item::before {
    top: 1px;
    /* опускаем точки ниже */
    right: 0;
    left: 0;
    bottom: 0;
    opacity: .07;
    background-size: 20px 20px;
    background-position: 0 8px;
    mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
  }
}

/* ======================== */

.entry-app .item::before {
  content: "";
  position: absolute;
  top: 10px;
  right: -20px;
  width: 185px;
  height: 110px;
  background-image: radial-gradient(#4ccb70 2px, transparent 2px);
  background-size: 18px 18px;
  opacity: .0.2;
  filter: blur(.3px);
  pointer-events: none;
}

@media (max-width:768px) {
  .entry-app .item::before {
    top: 1px;
    /* опускаем точки ниже */
    right: 0;
    left: 0;
    bottom: 0;
    opacity: .07;
    background-size: 20px 20px;
    background-position: 0 8px;
    mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
  }
}

/* ======================== */

.entry-app .item::before {
  content: "";
  position: absolute;
  top: 10px;
  right: -20px;
  width: 185px;
  height: 110px;
  background-image: radial-gradient(#4ccb70 2px, transparent 2px);
  background-size: 18px 18px;
  opacity: .0.2;
  filter: blur(.3px);
  pointer-events: none;
}

@media (max-width:768px) {
  .entry-app .item::before {
    top: 1px;
    /* опускаем точки ниже */
    right: 0;
    left: 0;
    bottom: 0;
    opacity: .07;
    background-size: 20px 20px;
    background-position: 0 8px;
    mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
  }
}

/* ======================== */

.entry-app .item::before {
  content: "";
  position: absolute;
  top: 10px;
  right: -20px;
  width: 185px;
  height: 110px;
  background-image: radial-gradient(#4ccb70 2px, transparent 2px);
  background-size: 18px 18px;
  opacity: .0.2;
  filter: blur(.3px);
  pointer-events: none;
}

@media (max-width:768px) {
  .entry-app .item::before {
    top: 1px;
    /* опускаем точки ниже */
    right: 0;
    left: 0;
    bottom: 0;
    opacity: .07;
    background-size: 20px 20px;
    background-position: 0 8px;
    mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
  }
}

/* ======================== */

.entry-app .item::before {
  content: "";
  position: absolute;
  top: 10px;
  right: -20px;
  width: 185px;
  height: 110px;
  background-image: radial-gradient(#4ccb70 2px, transparent 2px);
  background-size: 18px 18px;
  opacity: .0.2;
  filter: blur(.3px);
  pointer-events: none;
}

@media (max-width:768px) {
  .entry-app .item::before {
    top: 1px;
    /* опускаем точки ниже */
    right: 0;
    left: 0;
    bottom: 0;
    opacity: .07;
    background-size: 20px 20px;
    background-position: 0 8px;
    mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
  }
}

/* ======================== */

.entry-app .item::before {
  content: "";
  position: absolute;
  top: 10px;
  right: -20px;
  width: 185px;
  height: 110px;
  background-image: radial-gradient(#4ccb70 2px, transparent 2px);
  background-size: 18px 18px;
  opacity: .0.2;
  filter: blur(.3px);
  pointer-events: none;
}

@media (max-width:768px) {
  .entry-app .item::before {
    top: 1px;
    /* опускаем точки ниже */
    right: 0;
    left: 0;
    bottom: 0;
    opacity: .07;
    background-size: 20px 20px;
    background-position: 0 8px;
    mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 25%, transparent 45%, transparent 55%, black 75%, black 100%);
  }
}

/* ======================== */

@media (max-width:768px) {

  .title-badge {
    padding: 6px 8px;
    background: #3f95ec21;
    border-radius: 12px;
    color: #000;
  }

  /* фиолетовая */
  .title-badge.title-apps {
    background: #9c6bff21;
  }

  /* красная для лучших игр */
  .title-badge.title-games {
    background: #d44c4c3b;
  }

  .darktheme .title-badge {
    color: #fff;
  }

}

/* ======================== */

/* убрать нижний отступ */
.topgames-block {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* карусель */
.topgrid-wrap {
  position: relative;
}

.topgrid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 6px 0 0 10px;
}

.topgrid::-webkit-scrollbar {
  display: none;
}

.topcard {
  flex: 0 0 calc(25% - 14px);
  padding: 18px;
  border-radius: 18px;
  position: relative;
  scroll-snap-align: start;
}

.topcard,
.topcard * {
  transition: none !important;
}

.topcard:hover {
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width:768px) {

  .page-head-main .title {
    font-size: 0;
  }

  .page-head-main .title::before {
    content: "Игры и программы на ";
    font-size: 22px;
  }

  .page-head-main .title::after {
    content: "АНДРОИД";
    background: #673AB7;
    color: #fff;
    border-radius: 7px;
    padding: 0 4px;
    font-weight: 900;
    font-size: 17px;

  }

}

.topcard-row {
  display: flex;
  align-items: center;
}

.topcard-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
}

.topcard-info {
  flex: 1;
  margin-left: 14px;
}

.topcard-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topcard-title {
  font-size: 16px;
  font-weight: 600;
}

.topcard-meta-wrap {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.topcard-meta {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 600;
}

.topcard-meta.version {
  background: rgba(34, 197, 94, .12);
  color: #22c55e !important;
}

.topcard-meta.android {

  color: #eab308 !important;
}

/* светлая тема — серый текст */
@media (prefers-color-scheme: light) {

  .topcard-meta.version {
    color: #6b7280 !important;
  }

  .topcard-meta.android {
    color: #6b7280 !important;
  }

}

/* MOD */
.topcard .post__modpaid {
  background: #ff4d4f;
  width: 2.5rem;
  height: 1.25rem;
  border-radius: 7px;
  line-height: .875rem;
  font-size: .625rem;
  padding: .1875rem .25rem;
  text-align: center;
  font-weight: bold;
  letter-spacing: .05rem;
  box-shadow: 0 .25rem .5rem rgba(0, 0, 0, .07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
}

.blog-card.topcard .post__modpaid,
.blog-card.topcard .post__modpaid * {
  color: #fff !important;
}

.topcard-rank {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 46px;
  font-weight: 800;
  opacity: .12;
}

.topcard-arrow {
  font-size: 20px;
  opacity: .5;
  margin-left: auto;
}

.topgrid-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
}

.topgrid-btn svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  stroke-width: 2.5;
}

.topgrid-btn:hover {
  background: rgba(0, 0, 0, 0.45);
}

.topgrid-btn.left {
  left: -6px;
}

.topgrid-btn.right {
  right: 4px;
}

.blog-card.topcard {
  color: inherit !important;
}

.blog-card.topcard * {
  color: inherit !important;
}

.topcard,
.topcard * {
  transition: none !important;
}

@media (max-width:900px) {
  .topcard {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width:768px) {
  .topgrid-btn {
    display: none;
  }

  .topcard {
    flex: 0 0 86%;
  }
}

/* ======================== */

@media (max-width:768px) {

  .title-badge {
    padding: 6px 8px;
    background: #3f95ec21;
    border-radius: 12px;
    color: #000;
  }

  /* другой цвет для этой плашки */
  .title-badge.title-apps {
    background: #9c6bff21;
  }

  .darktheme .title-badge {
    color: #fff;
  }

}

/* ======================== */

@media (max-width:768px) {

  .title-badge {

    display: inline-block;
    padding: 6px 8px;

    background: #3f95ec21;

    border-radius: 12px;

    color: #000;

  }

  /* темная тема */

  .darktheme .title-badge {
    color: #fff;
  }

}

/* ======================== */

.so2-mini {
  position: relative;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  gap: 7px;

  height: 34px;
  padding: 0 14px;

  border-radius: 999px;

  background: linear-gradient(135deg,
      rgba(80, 140, 255, .16),
      rgba(40, 110, 255, .10));

  border: none;

  text-decoration: none !important;

  overflow: hidden;

  transition: .16s;

  top: 0px;
  left: 0px;
}

/* блик */
.so2-mini::before {
  content: '';

  position: absolute;

  top: 0;
  left: -45px;

  width: 45px;
  height: 100%;

  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, .10),
      transparent);

  transform: skewX(-25deg);
}

/* hover */
.so2-mini:hover {
  background: linear-gradient(135deg,
      rgba(80, 140, 255, .22),
      rgba(40, 110, 255, .14));
}

/* ИКОНКА */
.so2-icon {
  width: 14px;
  height: 14px;

  min-width: 14px;

  fill: #6ea8ff;

  filter: drop-shadow(0 0 6px rgba(110, 168, 255, .35));

  position: relative;
  z-index: 2;

  /* двигать иконку */
  top: 0px;
  left: 0px;
}

/* ТЕКСТ */
.so2-text {
  position: relative;
  z-index: 2;

  display: block !important;

  color: #fff !important;

  font-family: inherit;

  font-size: 13px;
  font-weight: 700;

  line-height: 1;

  white-space: nowrap;

  /* двигать текст */
  top: 0px;
  left: 0px;
}

.brawl-mini {
  position: relative;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  gap: 7px;

  height: 34px;
  padding: 0 14px;

  border-radius: 999px;

  background: linear-gradient(135deg,
      rgba(255, 80, 80, .16),
      rgba(255, 40, 40, .10));

  border: none;

  text-decoration: none !important;

  overflow: hidden;

  transition: .16s;

  top: 0px;
  left: 0px;
}

/* блик */
.brawl-mini::before {
  content: '';

  position: absolute;

  top: 0;
  left: -45px;

  width: 45px;
  height: 100%;

  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, .10),
      transparent);

  transform: skewX(-25deg);
}

/* hover */
.brawl-mini:hover {
  background: linear-gradient(135deg,
      rgba(255, 80, 80, .22),
      rgba(255, 40, 40, .14));
}

/* ИКОНКА */
.brawl-icon {
  width: 14px;
  height: 14px;

  min-width: 14px;

  fill: #ff6b6b;

  filter: drop-shadow(0 0 6px rgba(255, 107, 107, .35));

  position: relative;
  z-index: 2;

  /* двигать иконку */
  top: 0px;
  left: 0px;
}

/* ТЕКСТ */
.brawl-text {
  position: relative;
  z-index: 2;

  display: block !important;

  color: #fff !important;

  font-family: inherit;

  font-size: 13px;
  font-weight: 700;

  line-height: 1;

  white-space: nowrap;

  /* двигать текст */
  top: 0px;
  left: 0px;
}

.pvz-mini {
  position: relative;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  gap: 7px;

  height: 34px;
  padding: 0 14px;

  border-radius: 999px;

  background: linear-gradient(135deg,
      rgba(255, 210, 70, .16),
      rgba(255, 185, 0, .10));

  border: none;

  text-decoration: none !important;

  overflow: hidden;

  transition: .16s;

  top: 0px;
  left: 0px;
}

/* блик */
.pvz-mini::before {
  content: '';

  position: absolute;

  top: 0;
  left: -45px;

  width: 45px;
  height: 100%;

  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, .10),
      transparent);

  transform: skewX(-25deg);
}

/* hover */
.pvz-mini:hover {
  background: linear-gradient(135deg,
      rgba(255, 210, 70, .22),
      rgba(255, 185, 0, .14));
}

/* ИКОНКА */
.pvz-icon {
  width: 14px;
  height: 14px;

  min-width: 14px;

  fill: #ffd54a;

  filter: drop-shadow(0 0 6px rgba(255, 213, 74, .35));

  position: relative;
  z-index: 2;

  /* двигать иконку */
  top: 0px;
  left: 0px;
}

/* ТЕКСТ */
.pvz-text {
  position: relative;
  z-index: 2;

  display: block !important;

  color: #fff !important;

  font-family: inherit;

  font-size: 13px;
  font-weight: 700;

  line-height: 1;

  white-space: nowrap;

  /* двигать текст */
  top: 0px;
  left: 0px;
}

.pvz-text b {
  font-weight: 800;
  color: #ffe27a;
}

/* GRID */

.f5picks-slider {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.netflix-mini {
  position: relative;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  gap: 7px;

  height: 34px;
  padding: 0 14px;

  border-radius: 999px;

  background: linear-gradient(135deg,
      rgba(39, 161, 119, .16),
      rgba(0, 189, 124, .10));

  /* УБРАЛ ОБВОДКУ */
  border: none;

  text-decoration: none !important;

  overflow: hidden;

  transition: .16s;

  top: 0px;
  left: 0px;
}

/* блик */
.netflix-mini::before {
  content: '';

  position: absolute;

  top: 0;
  left: -45px;

  width: 45px;
  height: 100%;

  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, .10),
      transparent);

  transform: skewX(-25deg);
}

/* hover */
.netflix-mini:hover {
  background: linear-gradient(135deg,
      rgba(39, 161, 119, .22),
      rgba(0, 189, 124, .14));
}

/* ИКОНКА */
.netflix-icon {
  width: 14px;
  height: 14px;

  min-width: 14px;

  fill: #27c27c;

  filter: drop-shadow(0 0 6px rgba(39, 194, 124, .35));

  position: relative;
  z-index: 2;

  top: 0px;
  left: 0px;
}

/* ТЕКСТ */
.netflix-text {
  position: relative;
  z-index: 2;

  display: block !important;

  /* БЕЛЫЙ ВСЕГДА */
  color: #fff !important;

  /* СТАНДАРТНЫЙ ШРИФТ САЙТА */
  font-family: inherit;

  font-size: 13px;
  font-weight: 700;

  line-height: 1;

  white-space: nowrap;

  top: 0px;
  left: 0px;
}

/* CARD */

.f5card {
  position: relative;
  height: 290px;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;

  transition:
    transform .45s cubic-bezier(.2, .8, .2, 1),
    box-shadow .45s;
}

/* HOVER */

.f5card:hover {
  transform: translateY(-10px) scale(1.02);

  box-shadow:
    0 30px 80px rgba(0, 0, 0, .55),
    0 0 30px color-mix(in srgb, var(--grad) 55%, transparent);
}

/* BACKGROUND */

.f5card-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.f5card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 1.4s cubic-bezier(.2, .8, .2, 1);
}

.f5card:hover .f5card-bg img {
  transform: scale(1.12);
}

/* SHIMMER */

.f5card::before {
  content: "";
  position: absolute;
  inset: -120% -40%;
  background: linear-gradient(120deg,
      transparent 0%,
      rgba(255, 255, 255, .12) 40%,
      transparent 70%);
  transform: rotate(12deg);
  transition: all .9s;
  opacity: 0;
}

.f5card:hover::before {
  opacity: 1;
  inset: -40% -40%;
}

/* GRADIENT */

.f5card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .92)),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, var(--grad));
  opacity: .75;
}

/* CONTENT */

.f5card-cont {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  color: #fff;
}

/* TITLE */

.f5card-title {
  font-size: 14px;
  font-weight: 700;
  font-family: Manrope, sans-serif;

  color: #fff !important;
  text-decoration: none;
  display: block;
  margin-bottom: 14px;
}

/* ICONS */

.f5icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ICON */

.f5icons img {
  width: 44px;
  height: 44px;

  border-radius: 12px;

  box-shadow:
    0 10px 20px rgba(0, 0, 0, .6),
    0 4px 10px rgba(0, 0, 0, .4);

  transition:
    transform .35s cubic-bezier(.2, .8, .2, 1),
    box-shadow .35s;
}

/* ICON HOVER */

.f5icons a:hover img {
  transform: translateY(-8px) scale(1.12);

  box-shadow:
    0 20px 40px rgba(0, 0, 0, .65),
    0 0 12px rgba(255, 255, 255, .35);
}

/* MOBILE */

@media(max-width:900px) {

  .f5picks-slider {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
  }

  .f5card {
    min-width: 300px;
    height: 310px;
    scroll-snap-align: start;
  }

  .f5icons img {
    width: 50px;
    height: 50px;
  }

  /* убираем hover карточки */

  .f5card:hover {
    transform: none;
    box-shadow: none;
  }

  /* отключаем увеличение картинки */

  .f5card:hover .f5card-bg img {
    transform: none;
  }

  /* убираем тень иконки при нажатии */

  .f5icons a:active img {
    box-shadow: none;
    transform: none;
  }

  .f5picks-slider::-webkit-scrollbar {
    display: none;
  }

}

/* ======================== */

/* GRID */

.f5info .blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px;
  margin-top: 12px;
}

/* CARD */

.f5info .blog-card {
  display: flex;
  align-items: center;
  background: var(--card-bg, rgba(255, 255, 255, .04));
  border-radius: 18px;
  padding: 16px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.f5info .blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}

/* IMAGE */

.f5info .card-img {
  width: 105px;
  height: 105px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 16px;
}

.f5info .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TEXT */

.f5info .card-text {
  display: flex;
  flex-direction: column;
}

/* TITLE */

.f5info .card-title {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* DESCRIPTION */

.f5info .card-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  line-height: 1.45;
  color: var(--card-muted, rgba(255, 255, 255, .65));
  margin-bottom: 12px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* BUTTON */

.f5info .card-btn {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9px;
  background: #3fb95f;
  color: #fff;
  width: max-content;
  transition: background .25s ease;
}

.f5info .card-btn:hover {
  background: #35a653;
}

/* LIGHT THEME */

html#h:not(.darktheme) .f5info .blog-card {
  background: #ffffff;
}

html#h:not(.darktheme) .f5info .card-desc {
  color: rgba(0, 0, 0, .60);
}

/* MOBILE */

@media (max-width:640px) {

  .f5info .blogs-grid {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    scroll-snap-type: x mandatory;
  }

  .f5info .blog-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
    flex-direction: column;
    align-items: center;
    box-shadow: none;
    transition: none;
  }

  .f5info .blog-card:hover {
    box-shadow: none;
    transform: none;
  }

  .f5info .card-img {
    width: 100%;
    height: 150px;
    margin: 0 0 12px 0;
  }

  .f5info .card-title {
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
  }

  .f5info .card-desc {
    display: none;
  }

  .f5info .card-btn {
    display: block;
    margin: 0 auto;
    padding: 5px 60px;
    font-size: 12.5px;
    border-radius: 10px;
    background: #d44c4c87;
  }

  .f5info .blogs-grid::-webkit-scrollbar {
    display: none;
  }

}

/* ======================== */

.f5play-icon {
  width: 16px;
  /* размер */
  height: 16px;

  vertical-align: -2px;
  /* 👈 только лёгкая подстройка, текст не ломает */
  margin-right: 4px;
}

/* ======================== */

.about5play {
  margin-bottom: 3rem;
}

@media (max-width: 575px) {
  .about5play {
    margin-bottom: 1.5rem;
  }
}

.about5play-box {

  padding: 22px;

  border-radius: 18px;

  background: rgba(63, 185, 95, .04);

  line-height: 1.7;
  font-size: 15px;

}

/* текст */

.about-text {

  overflow: hidden;
  max-height: 190px;

  -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 75%, transparent 100%);

}

/* раскрытый */

.about-open .about-text {
  max-height: none;
  -webkit-mask-image: none;
  mask-image: none;
}

/* заголовок */

.about5play-subtitle {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.about5play-box p {
  margin-bottom: 14px;
}

.about-hidden {
  display: none;
}

/* кнопка */

.about-toggle {

  margin-top: 10px;

  background: none;
  border: none;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  color: #4ccb70;

}

/* светлая тема */

body.light-theme .about5play-box {
  background: #f6f7f9;
  border: 1px solid rgba(0, 0, 0, .08);
}

/* MOBILE */

@media(max-width:900px) {

  .about5play-box {
    font-size: 14px;
    padding: 18px;
  }

  /* ниже опустили fade */

  .about-text {

    max-height: 210px;

    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);

  }

}

/* ===== ПОЛНЫЙ ФИКС КАПСУЛЫ (5play цвет) ===== */
html body .about5play-subtitle {

  --capsule-font-size: 16px;

  display: inline-block !important;
  padding: 8px 14px !important;

  font-size: var(--capsule-font-size) !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;

  border-radius: 14px !important;

  background: rgba(76, 203, 112, 0.18) !important;
  /* #4ccb70 с прозрачностью */

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* тёмная тема */
html.darktheme body .about5play-subtitle {
  color: #fff !important;
}

/* светлая тема */
html:not(.darktheme) body .about5play-subtitle {
  color: #000 !important;
}

/* ======================== */

.footer-panel {
  position: relative;
}

/* по умолчанию скрыт (ПК) */
.footer-mini-logo {
  display: none;
}

/* показываем только на мобильных */
@media (max-width:768px) {

  .footer-mini-logo {
    display: block;
    position: absolute;
    right: 12px;
    /* было 5px -> стало левее */
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.09;
    /* было 0.12 -> стало прозрачнее */
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
  }

  .footer-panel:hover .footer-mini-logo {
    opacity: 0.18;
    /* было 0.25 -> тоже чуть прозрачнее на hover */
    transform: translateY(-50%) scale(1.05);
  }

  .footer-mini-logo img {
    width: 45px;
    height: auto;
  }
}

/* ======================== */

.img .post__modpaid {
  background-color: #ef4444;
  width: 2.5rem;
  height: 1.25rem;
  border-radius: .625rem;
  color: #fff;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: .875rem;
  font-size: .625rem;
  padding: .1875rem .25rem;
  text-align: center;
  font-weight: bold;
  letter-spacing: .05rem;
  text-indent: .05rem;
  box-shadow: 0 .25rem .5rem 0 rgba(0, 0, 0, 0.07);
}

/* ======================== */

#maxSubOverlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(8px);

  opacity: 0;
  pointer-events: none;
  transition: .35s;

  z-index: 999999;
}

#maxSubOverlay.show {
  opacity: 1;
  pointer-events: auto;
}

.maxSubBox {
  width: 92%;
  max-width: 360px;
  border-radius: 14px;
  padding: 18px;
  text-align: center;

  background: #fff;
  color: #111;

  transform: scale(.9) translateY(20px);
  opacity: 0;
  transition: .35s cubic-bezier(.2, .8, .2, 1);
}

#maxSubOverlay.show .maxSubBox {
  transform: scale(1) translateY(0);
  opacity: 1;
}

html.darktheme .maxSubBox {
  background: #1c1c1c;
  color: #fff;
}

.maxSubTop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.maxSubIcon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.maxSubTitle {
  font-size: 17px;
  font-weight: 700;
}

.maxSubText {
  font-size: 13.5px;
  opacity: .85;
  margin: 12px 0 16px;
}

.maxSubActions {
  display: flex;
  gap: 10px;
}

.maxBtnSub {
  flex: 1;
  padding: 11px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(135deg, #27a177, #4ccb70);
  color: #fff;
}

.maxBtnClose {
  width: 42px;
  border-radius: 10px;
  border: none;
  background: #eee;
}

html.darktheme .maxBtnClose {
  background: #2a2a2a;
  color: #fff;
}

@media(min-width:768px) {
  #maxSubOverlay {
    display: none !important;
  }
}

/* ======================== */

#uidLogButton {
  display: none;
}

#baseLogForm {
  display: block !important;
}

#uidLogButtonAjx {
  display: none;
}

#baseLogFormAjx {
  display: block !important;
}

/* Рекомендуем — 4 карточки во всю ширину */
.recom-list.list-c4 .entry {
  max-width: 25%;
  flex: 0 0 25%;
}

@media (max-width: 767px) {
  .section-recom .recom-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: .5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .section-recom .recom-list::-webkit-scrollbar {
    display: none;
  }

  .section-recom .recom-list .entry {
    flex: 0 0 72%;
    max-width: 72%;
    scroll-snap-align: start;
  }
}

/* ===== Рекомендуем — увеличенные карточки как в оригинале ===== */
.recom-post {
  padding: 0;
  min-height: 13rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 1.25rem;
  position: relative;
}

.recom-post {
  cursor: pointer;
  color: var(--tcolor);
  text-decoration: none;
}


.recom-post .img {
  width: 9rem;
  height: 9rem;
  position: relative;
  z-index: 1;
  margin: 0 auto .5rem;
}

.recom-post .img img {
  width: 100%;
  height: 100%;
  border-radius: 1.25rem;
}

.recom-post .title {
  position: relative;
  z-index: 1;
  margin-top: .5rem;
  padding: 0 .5rem;
  font-size: .8125rem;
}

.recom-post-vers {
  z-index: 1;
}

.recom-post-bg {
  top: 0;
  border-radius: 1.125rem;
  overflow: hidden;
}

.recom-post-bg > svg {
  width: 100%;
  height: auto;
  transform: translateY(-20%);
}
