.yt-library section,.yt-video,#youtube-del-aula {scroll-margin-top:6rem}
.yt-library > section {margin-block:1.75rem}
.yt-grid,.yt-filters {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:1rem}
.yt-card {min-width:0;margin:0;overflow-wrap:break-word}
.yt-card h3 {margin-block:.4rem}
.yt-channel-head {display:flex;align-items:center;gap:.8rem}
.yt-channel-head img {border-radius:.55rem;object-fit:cover}
.yt-thumbnail {width:100%;height:auto;aspect-ratio:16 / 9;object-fit:cover;background:#e8efe9;border-radius:.5rem}
.yt-filters label {display:grid;align-content:start;gap:.35rem;min-width:0}
.yt-filters input,.yt-filters select {width:100%;min-width:0;max-width:100%;padding:.5rem;font:inherit}
.yt-filters[hidden],.yt-video[hidden] {display:none}
.yt-related {padding-inline-start:1.25rem}
.yt-video:focus-visible {outline:3px solid #ad5517;outline-offset:3px}

/* Compact section navigation. Anchors work with and without JavaScript. */
.yt-library #youtube-filtros {scroll-margin-block-start:6rem}
.yt-library .yt-section-nav {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-auto-rows:1fr;
  gap:.7rem;
  margin-block:.65rem 1.2rem;
}
.student .yt-section-link {
  display:grid;
  grid-template-rows:auto auto 1fr;
  align-items:start;
  justify-items:start;
  gap:.3rem;
  min-inline-size:44px;
  min-block-size:44px;
  padding:.8rem;
  color:#153e32;
  background:#fff;
  border:1px solid #becfc3;
  border-radius:14px;
  box-shadow:0 1px 3px #153e3210;
  text-decoration:none;
  line-height:1.3;
  transition:background-color .17s,border-color .17s;
}
.student .yt-section-link strong {font-size:1rem;overflow-wrap:anywhere}
.yt-section-copy {font-size:.8125rem;color:#405a50;overflow-wrap:anywhere}
.yt-section-icon {display:grid;place-items:center;width:2.15rem;height:2.15rem;border-radius:.55rem;background:#e8f2ec;color:#075240}
.student .yt-section-link:hover {background:#eef6f0;border-color:#567e66;text-decoration:none}
.student .yt-section-link:active {background:#dfeee4}
.student .yt-section-link:focus-visible {outline:3px solid #075240;outline-offset:2px}
.yt-library > section:first-of-type {margin-block-start:0}
.yt-library h2 {color:#153e32;line-height:1.2;margin-block:0 .8rem}
.yt-library .yt-card {padding:clamp(.85rem,2vw,1.25rem)}
.yt-library .yt-card p {line-height:1.55}
.yt-library .yt-channel-head img {flex:none}
.yt-library .yt-channel-link {
  display:inline-flex;align-items:center;min-height:44px;padding:.35rem .65rem;
  border:1px solid #becfc3;border-radius:.6rem;color:#075240;
  font-weight:650;text-underline-offset:.2em;
}
@media (min-width:1024px) {
  .yt-library .yt-section-nav {grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce) {
  .student .yt-section-link {transition:none}
}
