/* YouTube grid at the foot of the front page: six across, two rows. */
.ed-yt__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ed-yt__heading { font-family: var(--ed-head); font-size: 1.75rem; font-weight: 700; line-height: 1.1; color: var(--ed-ink); }
.ed-yt__headtext { min-width: 0; }
.ed-yt__line,
.ed-reels__line { margin: 6px 0 0; font: 400 0.875rem/1.4 var(--ed-sans); color: var(--ed-ink-3); }
/* The one link that leaves the site: a 44px target with the external mark. */
.ed-yt__more { display: inline-flex; flex: none; align-items: center; gap: 5px; min-height: 44px; font: 500 0.8125rem/1.3 var(--ed-sans); color: var(--ed-ink-3); }
.ed-yt__more:hover { color: var(--ed-ink); text-decoration: underline; text-underline-offset: 3px; }
.ed-yt__ext { flex: none; }
@media (max-width: 739.98px) {
  .ed-yt__head { flex-wrap: wrap; row-gap: 4px; }
}

.ed-yt__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 740px) { .ed-yt__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; } }
@media (min-width: 1150px) { .ed-yt__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px 16px; } }

/* Phones: three rows of two; the rest are on time.mk. */
@media (max-width: 739.98px) { .ed-yt__item:nth-child(n + 7) { display: none; } }
.ed-yt__link { display: block; }
.ed-yt__thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ed-bg-3); }
.ed-yt__thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s var(--ed-ease); }
.ed-yt__link:hover .ed-yt__thumb img { opacity: 0.88; }
.ed-yt__len {
  position: absolute; right: 6px; bottom: 6px;
  padding: 2px 5px;
  border-radius: 2px;
  background: rgba(18, 18, 18, 0.82);
  color: #fff;
  font: 600 0.75rem/1.2 var(--ed-sans);
  font-variant-numeric: tabular-nums;
}
.ed-yt__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-top: 9px;
  font-family: var(--ed-head);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ed-ink);
}
.ed-yt__link:hover .ed-yt__title { color: var(--ed-ink-3); }
.ed-yt__age { display: block; margin-top: 6px; font: 500 0.6875rem/1.3 var(--ed-sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ed-ink-4); }

/* Player light box */
.ed-yt-box { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; padding: 16px; background: rgba(18, 18, 18, 0.86); }
.ed-yt-box__inner { position: relative; width: min(960px, 100%); }
.ed-yt-box__guard { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; outline: 0; }
.ed-yt-box__frame { aspect-ratio: 16 / 9; background: #000; }
.ed-yt-box__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.ed-yt-box__close {
  position: absolute; right: 0; top: -44px;
  width: 40px; height: 40px;
  color: #fff; font: 400 28px/1 var(--ed-sans);
}
.ed-yt-box__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Reels: five tall video cards in a row (horizontal scroll on phones). */
.ed-reels__row { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 16px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ed-reels__row::-webkit-scrollbar { display: none; }
/* position: relative keeps the hidden «видео на YouTube» text inside the scroller (else it widened the page). */
.ed-reels__item { position: relative; scroll-snap-align: start; min-width: 0; }
.ed-yt__item { position: relative; }
@media (min-width: 740px) { .ed-reels__row { grid-auto-columns: 30%; } }
@media (min-width: 1024px) { .ed-reels__row { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px; overflow: visible; } }
.ed-reels__link { display: block; }
.ed-reels__thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 2 / 3; background: var(--ed-ink); }
.ed-reels__thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s var(--ed-ease); }
.ed-reels__link:hover .ed-reels__thumb img { opacity: 0.88; }
.ed-reels__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: rgba(18, 18, 18, 0.42); color: #fff; }
.ed-reels__play .ed-icon { margin-left: 3px; }
.ed-reels__channel { display: block; margin: 12px 0 4px; }
/* The source on the picture: these are YouTube videos of other broadcasters. */
.ed-reels__src { position: absolute; left: 8px; top: 8px; padding: 3px 6px; border-radius: 2px; background: rgba(18, 18, 18, 0.72); color: #fff; font: 600 0.6875rem/1.2 var(--ed-sans); letter-spacing: 0.04em; }
.ed-reels__head .ed-reels__line { flex-basis: 100%; margin-top: 0; }
.ed-reels__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; font-family: var(--ed-head); font-size: var(--ed-fs-sm); font-weight: 500; line-height: 1.22; color: var(--ed-ink); }
.ed-reels__link:hover .ed-reels__title { color: var(--ed-ink-3); }
.ed-yt-box--reel .ed-yt-box__inner { width: min(400px, 100%, calc((100vh - 110px) * 9 / 16)); }
.ed-yt-box--reel .ed-yt-box__frame { aspect-ratio: 9 / 16; }