.sponsor-banner,
.sponsor-banner.container {
  display: grid;
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px 6px;
  margin: 2px 0 !important;
  padding: 0 !important;
}

.sponsor-banner:empty,
.sponsor-apps:empty {
  display: none;
}

.sponsor-banner__item,
.sponsor-banner__item img {
  display: block;
  width: 100%;
  height: 100%;
}

.sponsor-banner__item img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 2px;
  object-fit: fill;
}

.video-cover img,
.video-thumb,
.video-thumb img,
.player-poster-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.video-card {
  box-sizing: border-box;
  height: 100%;
  min-width: 0;
}

.video-card-link,
.video-cover-link,
.video-card__link {
  box-sizing: border-box;
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
}

.video-cover,
.video-thumb-wrap,
span.video-thumb,
.video-card__media {
  position: relative;
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-cover img,
.video-thumb-wrap img,
span.video-thumb img,
.video-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.video-card .video-title,
.video-card h2,
.video-card h3 {
  display: -webkit-box;
  box-sizing: border-box;
  min-height: calc(2.8em + 20px);
  max-height: calc(2.8em + 20px);
  overflow: hidden;
  line-height: 1.4;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sponsor-apps,
.sponsor-apps.container {
  box-sizing: border-box;
  display: block;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 8px auto !important;
  padding: 8px !important;
  overflow: visible;
}

.sponsor-apps ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sponsor-apps li {
  min-width: 0;
}

.sponsor-apps a {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  padding: 4px 2px;
  color: inherit;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.sponsor-apps img {
  display: block;
  width: clamp(48px, 15vw, 64px);
  height: clamp(48px, 15vw, 64px);
  max-width: 100%;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: contain;
}

.sponsor-apps span {
  display: -webkit-box;
  max-width: 100%;
  margin-top: 5px;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sponsor-apps a:hover {
  opacity: 0.82;
}

.friend-links {
  padding: 18px 0;
  border-bottom: 1px solid rgba(127, 127, 127, 0.18);
}

.video-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid rgba(127, 127, 127, 0.24);
  border-radius: 8px;
}

.video-actions button {
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  background: #e83e62;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.video-actions button:disabled { cursor: wait; opacity: 0.65; }
.video-actions__message { color: #25a66a; }

.list-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}

.list-sort__link {
  padding: 7px 12px;
  border: 1px solid rgba(127, 127, 127, 0.28);
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}

.list-sort__link.active {
  border-color: #e83e62;
  background: #e83e62;
  color: #fff;
}

.category-stats {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.78;
}

.category-stats strong {
  color: #e83e62;
  font-weight: 700;
}

.friend-links__title {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.4;
}

.friend-links__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.friend-links__item {
  color: inherit;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.76;
  text-decoration: none;
}

.friend-links__item:hover {
  opacity: 1;
  text-decoration: underline;
}


@media (min-width: 641px) {
  .sponsor-banner,
  .sponsor-banner.container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sponsor-apps ul {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .sponsor-apps img {
    width: 60px;
    height: 60px;
  }
}

@media (min-width: 1024px) {
  .sponsor-apps ul {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .sponsor-apps img {
    width: 64px;
    height: 64px;
  }
}
