/* YouTube */

/* Hide recommended videos */        
  #related {
    display: none !important;
  }
              
/* Hide button for the algorithmic Homepage */        
  ytd-browse[role="main"][page-subtype="home"] #contents,
  yt-tab-shape[tab-title="YouTube"],
  yt-chip-cloud-chip-renderer:has(yt-formatted-string[title="Home"]),
  ytd-guide-entry-renderer:has(path[d*="M4 21V10.08l8-6.96 8 6.96V21h-6v-6h-4v6H4z"]),
  ytd-guide-entry-renderer:has(path[d*="m12 4.44 7 6.09V20h-4v-6H9v6H5v-9.47l7-6.09m0-1.32-8 6.96V21h6v-6h4v6h6V10.08l-8-6.96z"]) {
    visibility: hidden !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
              
/* Hide banner ads */        
  #masthead-ad,
  ytd-mealbar-promo-renderer {
    display:none !important;
  }
              
/* Hide YouTube Shorts */
  ytd-rich-section-renderer:has(a[href*="/shorts/"]),
  ytd-reel-item-renderer:has(a[href*="/shorts/"]),
  ytd-grid-video-renderer:has(a[href*="/shorts/"]),
  ytd-rich-grid-slim-media:has(a[href*="/shorts/"]),
  ytd-rich-grid-media:has(a[href*="/shorts/"]),
  ytd-reel-shelf-renderer:has(a[href*="/shorts/"]),
  ytd-video-renderer:has(a[href*="/shorts/"]),
  yt-tab-shape[tab-title="Shorts"],
  ytd-guide-entry-renderer:has(path[d*="M10 14.65v-5.3L15 12l-5"]),
  yt-chip-cloud-chip-renderer:has(yt-formatted-string[title="Shorts"]) {
    visibility: hidden !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
              
/* Have a nice picture on the homepage instead of it being blank */                            
  ytd-browse[page-subtype="home"] {
    background-color: gray;
    /* here is Matt Rek's YT background wallpaper, leave it or use a different url */
    background-image: url('https://webshare.mattr.co.uk/youtube-bgd.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: 50% 50%;
    min-height: 90vh;
  } 
                            
  #content {
    min-height:100%;
  }