Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!-- Masthead -->
<header class="masthead">

	<button class="menu-btn btn">
            <i class="fas fa-bars" aria-hidden="true"></i>
        </button>

	<div class="logo">
		<a href="#">
			<h1><i class="fab fa-youtube logo-icon" aria-hidden="true"></i>YouTube</h1>
		</a>
	</div>

	<div class="site-search">
		<input type="search" placeholder="Search" class="search-input" aria-label="Search">
		<button class="search-btn" aria-label="Search"><i class="fas fa-search" aria-hidden="true"></i></button>
	</div>

	<div class="user-menu">

		<button class="btn" aria-label="Upload">
                <i class="fas fa-upload" aria-hidden="true"></i>
            </button>

		<button class="btn" aria-label="YouTube Apps">
                <i class="fas fa-th" aria-hidden="true"></i>
            </button>

		<button class="btn" aria-label="Notifications">
                <i class="fas fa-bell" aria-hidden="true"></i>
            </button>

		<button class="btn" aria-label="Account">
                <i class="fas fa-user-circle" aria-hidden="true"></i>
            </button>

	</div>

</header>
<!-- End of header -->

<!-- Channel Banner -->
<section class="channel-banner">

	<div class="channel-social-links">

		<ul>

			<li class="btn google-plus">
				<i class="fab fa-google-plus-square" aria-hidden="true"></i>
			</li>

			<li class="btn twitter">
				<i class="fab fa-twitter-square" aria-hidden="true"></i>
			</li>

			<li class="btn facebook">
				<i class="fab fa-facebook-square" aria-hidden="true"></i>
			</li>

		</ul>

	</div>

</section>
<!-- End of channel banner -->

<!-- Channel Info -->
<section class="channel-info">

	<div class="container">

		<div class="channel-icon">

			<img src="https://images.unsplash.com/photo-1467912681710-2a73a89d88d6?w=80&h=80&fit=crop" alt="">

		</div>

		<div class="channel-title">

			<h1>ReallyCoolVlogs <i class="fas fa-check-circle"></i></h1>

			<div class="channel-subscriber-count">2,126,438 subscribers</div>

		</div>

		<div class="channel-subscribe">

			<button class="subscribe-btn btn">Subscribed 2.1m</button>

			<button class="notification-btn btn" aria-label="Enable Notifications"><i class="fas fa-bell" aria-hidden="true"></i></button>

		</div>

	</div>

</section>
<!-- End of channel info section -->

<!-- Channel navigation -->
<nav class="channel-nav">

	<div class="container">

		<ul>

			<li class="nav-item">
				<a href="#" class="current">Home</a>
			</li>

			<li class="nav-item">
				<a href="#">Videos</a>
			</li>

			<li class="nav-item">
				<a href="#">Playlists</a>
			</li>

			<li class="nav-item">
				<a href="#">Community</a>
			</li>

			<li class="nav-item">
				<a href="#">Channels</a>
			</li>

			<li class="nav-item">
				<a href="#">About</a>
			</li>

		</ul>

	</div>

</nav>
<!-- End of channel navigation -->

<!-- Channel main content -->
<main class="channel-content">

	<div class="container">

		<!-- Channel videos -->
		<section class="channel-videos">

			<div class="featured-video">

				<div class="video-thumbnail">
					<img src="https://images.unsplash.com/photo-1506960002266-9cebbf4e9549?w=246&h=140&fit=crop" alt="">
				</div>

				<div class="video-info">
					<h3 class="video-title">Really Cool Vlog 8</h3>
					<ul class="video-meta-data">
						<li class="video-creator">ReallyCoolVlogs <i class="fas fa-check-circle"></i></li>
						<li class="video-views">252K views</li>
						<li class="video-upload-date">1 day ago</li>
					</ul>
					<p class="video-description">Another installment of the really cool vlog. Please like and share the video. Subscribe and activate notifications so you never miss an upload. Follow on social media etc.</p>
				</div>

			</div>

			<div class="vlogs-playlist playlist">

				<h2 class="playlist-title">Really Cool Vlogs</h2>

				<div class="playlist-videos">

					<div class="playlist-video" tabindex="0">

						<div class="video-thumbnail">
							<img src="https://images.unsplash.com/photo-1506960002266-9cebbf4e9549?w=210&h=118&fit=crop" alt="">
						</div>

						<div class="video-info">
							<h3 class="video-title">Really Cool Vlog 8</h3>
							<ul class="video-meta-data">
								<li class="video-creator">ReallyCoolVlogs <i class="fas fa-check-circle"></i></li>
								<li class="video-views">252K views</li>
								<li class="video-upload-date">1 day ago</li>
							</ul>
						</div>

					</div>

					<div class="playlist-video" tabindex="0">

						<div class="video-thumbnail">
							<img src="https://images.unsplash.com/photo-1499364615650-ec38552f4f34?w=210&h=118&fit=crop" alt="">
						</div>

						<div class="video-info">
							<h3 class="video-title">Really Cool Vlog 7</h3>
							<ul class="video-meta-data">
								<li class="video-creator">ReallyCoolVlogs <i class="fas fa-check-circle"></i></li>
								<li class="video-views">376K views</li>
								<li class="video-upload-date">4 days ago</li>
							</ul>
						</div>

					</div>

					<div class="playlist-video" tabindex="0">

						<div class="video-thumbnail">
							<img src="https://images.unsplash.com/photo-1477466535227-9f581b3eec21?w=210&h=118&fit=crop" alt="">
						</div>

						<div class="video-info">
							<h3 class="video-title">Really Cool Vlog 6</h3>
							<ul class="video-meta-data">
								<li class="video-creator">ReallyCoolVlogs <i class="fas fa-check-circle"></i></li>
								<li class="video-views">441K views</li>
								<li class="video-upload-date">1 week ago</li>
							</ul>
						</div>

					</div>

					<div class="playlist-video" tabindex="0">

						<div class="video-thumbnail">
							<img src="https://images.unsplash.com/photo-1481241857164-e8483bce922d?w=210&h=118&fit=crop" alt="">
						</div>

						<div class="video-info">
							<h3 class="video-title">Really Cool Vlog 5</h3>
							<ul class="video-meta-data">
								<li class="video-creator">ReallyCoolVlogs <i class="fas fa-check-circle"></i></li>
								<li class="video-views">564K views</li>
								<li class="video-upload-date">1 week ago</li>
							</ul>
						</div>

					</div>

					<div class="playlist-video" tabindex="0">

						<div class="video-thumbnail">
							<img src="https://images.unsplash.com/photo-1496317556649-f930d733eea3?w=210&h=118&fit=crop" alt="">
						</div>

						<div class="video-info">
							<h3 class="video-title">Really Cool Vlog 4</h3>
							<ul class="video-meta-data">
								<li class="video-creator">ReallyCoolVlogs <i class="fas fa-check-circle"></i></li>
								<li class="video-views">689K views</li>
								<li class="video-upload-date">2 weeks ago</li>
							</ul>
						</div>

					</div>

					<div class="playlist-video" tabindex="0">

						<div class="video-thumbnail">
							<img src="https://images.unsplash.com/photo-1515164084382-4ac60f929e06?w=210&h=118&fit=crop" alt="">
						</div>

						<div class="video-info">
							<h3 class="video-title">Really Cool Vlog 3</h3>
							<ul class="video-meta-data">
								<li class="video-creator">ReallyCoolVlogs <i class="fas fa-check-circle"></i></li>
								<li class="video-views">763K views</li>
								<li class="video-upload-date">2 weeks ago</li>
							</ul>
						</div>

					</div>

					<div class="playlist-video" tabindex="0">

						<div class="video-thumbnail">
							<img src="https://images.unsplash.com/photo-1455657255576-9f8594457f6b?w=210&h=118&fit=crop" alt="">
						</div>

						<div class="video-info">
							<h3 class="video-title">Really Cool Vlog 2</h3>
							<ul class="video-meta-data">
								<li class="video-creator">ReallyCoolVlogs <i class="fas fa-check-circle"></i></li>
								<li class="video-views">824K views</li>
								<li class="video-upload-date">3 weeks ago</li>
							</ul>
						</div>

					</div>

					<div class="playlist-video" tabindex="0">

						<div class="video-thumbnail">
							<img src="https://images.unsplash.com/photo-1496337589254-7e19d01cec44?w=210&h=118&fit=crop" alt="">
						</div>

						<div class="video-info">
							<h3 class="video-title">Really Cool Vlog 1</h3>
							<ul class="video-meta-data">
								<li class="video-creator">ReallyCoolVlogs <i class="fas fa-check-circle"></i></li>
								<li class="video-views">1.1M views</li>
								<li class="video-upload-date">1 month ago</li>
							</ul>
						</div>

					</div>

				</div>

			</div>

			<div class="collabs-playlist playlist">

				<h2 class="playlist-title">Really Cool Collabs</h2>

				<div class="playlist-videos">

					<div class="playlist-video" tabindex="0">

						<div class="video-thumbnail">
							<img src="https://images.unsplash.com/photo-1468109320504-a5e48f17cfb7?w=210&h=118&fit=crop" alt="">
						</div>

						<div class="video-info">
							<h3 class="video-title">Really Cool Collab 6</h3>
							<ul class="video-meta-data">
								<li class="video-creator">ReallyCoolVlogs <i class="fas fa-check-circle"></i></li>
								<li class="video-views">128K views</li>
								<li class="video-upload-date">2 days ago</li>
							</ul>
						</div>

					</div>

					<div class="playlist-video" tabindex="0">

						<div class="video-thumbnail">
							<img src="https://images.unsplash.com/photo-1490578474895-699cd4e2cf59?w=210&h=118&fit=crop" alt="">
						</div>

						<div class="video-info">
							<h3 class="video-title">Really Cool Collab 5</h3>
							<ul class="video-meta-data">
								<li class="video-creator">ReallyCoolVlogs <i class="fas fa-check-circle"></i></li>
								<li class="video-views">294K views</li>
								<li class="video-upload-date">1 week ago</li>
							</ul>
						</div>

					</div>

					<div class="playlist-video" tabindex="0">

						<div class="video-thumbnail">
							<img src="https://images.unsplash.com/photo-1511306404404-ad607bd7c601?w=210&h=118&fit=crop" alt="">
						</div>

						<div class="video-info">
							<h3 class="video-title">Really Cool Collab 4</h3>
							<ul class="video-meta-data">
								<li class="video-creator">ReallyCoolVlogs <i class="fas fa-check-circle"></i></li>
								<li class="video-views">336K views</li>
								<li class="video-upload-date">2 weeks ago</li>
							</ul>
						</div>

					</div>

					<div class="playlist-video" tabindex="0">

						<div class="video-thumbnail">
							<img src="https://images.unsplash.com/photo-1475483768296-6163e08872a1?w=210&h=118&fit=crop" alt="">
						</div>

						<div class="video-info">
							<h3 class="video-title">Really Cool Collab 3</h3>
							<ul class="video-meta-data">
								<li class="video-creator">ReallyCoolVlogs <i class="fas fa-check-circle"></i></li>
								<li class="video-views">471K views</li>
								<li class="video-upload-date">3 weeks ago</li>
							</ul>
						</div>

					</div>

					<div class="playlist-video" tabindex="0">

						<div class="video-thumbnail">
							<img src="https://images.unsplash.com/photo-1512271126385-b02e1b530dca?w=210&h=118&fit=crop" alt="">
						</div>

						<div class="video-info">
							<h3 class="video-title">Really Cool Collab 2</h3>
							<ul class="video-meta-data">
								<li class="video-creator">ReallyCoolVlogs <i class="fas fa-check-circle"></i></li>
								<li class="video-views">565K views</li>
								<li class="video-upload-date">3 weeks ago</li>
							</ul>
						</div>

					</div>

					<div class="playlist-video" tabindex="0">

						<div class="video-thumbnail">
							<img src="https://images.unsplash.com/photo-1511854027438-1549025c5eff?w=210&h=118&fit=crop" alt="">
						</div>

						<div class="video-info">
							<h3 class="video-title">Really Cool Collab 1</h3>
							<ul class="video-meta-data">
								<li class="video-creator">ReallyCoolVlogs <i class="fas fa-check-circle"></i></li>
								<li class="video-views">683K views</li>
								<li class="video-upload-date">1 month ago</li>
							</ul>
						</div>

					</div>

				</div>

			</div>

			<div class="likes-playlist playlist">

				<h2 class="playlist-title">Liked Videos</h2>

				<div class="playlist-videos">

					<div class="playlist-video" tabindex="0">

						<div class="video-thumbnail">
							<img src="https://images.unsplash.com/photo-1515264741767-1b533a4cdcb7?w=210&h=118&fit=crop" alt="">
						</div>

						<div class="video-info">
							<h3 class="video-title">Really Cool Games 5</h3>
							<ul class="video-meta-data">
								<li class="video-creator">ReallyCoolGames <i class="fas fa-check-circle"></i></li>
								<li class="video-views">723K views</li>
								<li class="video-upload-date">2 days ago</li>
							</ul>
						</div>

					</div>

					<div class="playlist-video" tabindex="0">

						<div class="video-thumbnail">
							<img src="https://images.unsplash.com/photo-1464666495445-5a33228a808e?w=210&h=118&fit=crop" alt="">
						</div>

						<div class="video-info">
							<h3 class="video-title">Really Cool Fashion 3</h3>
							<ul class="video-meta-data">
								<li class="video-creator">ReallyCoolFashion <i class="fas fa-check-circle"></i></li>
								<li class="video-views">594K views</li>
								<li class="video-upload-date">1 week ago</li>
							</ul>
						</div>

					</div>

					<div class="playlist-video" tabindex="0">

						<div class="video-thumbnail">
							<img src="https://images.unsplash.com/photo-1474711850460-45057e434715?w=210&h=118&fit=crop" alt="">
						</div>

						<div class="video-info">
							<h3 class="video-title">Really Cool Music 4</h3>
							<ul class="video-meta-data">
								<li class="video-creator">ReallyCoolMusic <i class="fas fa-check-circle"></i></li>
								<li class="video-views">137K views</li>
								<li class="video-upload-date">2 weeks ago</li>
							</ul>
						</div>

					</div>

					<div class="playlist-video" tabindex="0">

						<div class="video-thumbnail">
							<img src="https://images.unsplash.com/photo-1493711662062-fa541adb3fc8?w=210&h=118&fit=crop" alt="">
						</div>

						<div class="video-info">
							<h3 class="video-title">Really Cool Games 2</h3>
							<ul class="video-meta-data">
								<li class="video-creator">ReallyCoolGames <i class="fas fa-check-circle"></i></li>
								<li class="video-views">1.2M views</li>
								<li class="video-upload-date">3 weeks ago</li>
							</ul>
						</div>

					</div>

					<div class="playlist-video" tabindex="0">

						<div class="video-thumbnail">
							<img src="https://images.unsplash.com/photo-1471478331149-c72f17e33c73?w=210&h=118&fit=crop" alt="">
						</div>

						<div class="video-info">
							<h3 class="video-title">Really Cool Music 2</h3>
							<ul class="video-meta-data">
								<li class="video-creator">ReallyCoolMusic <i class="fas fa-check-circle"></i></li>
								<li class="video-views">876K views</li>
								<li class="video-upload-date">3 weeks ago</li>
							</ul>
						</div>

					</div>

					<div class="playlist-video" tabindex="0">

						<div class="video-thumbnail">
							<img src="https://images.unsplash.com/photo-1505022610485-0249ba5b3675?w=210&h=118&fit=crop" alt="">
						</div>

						<div class="video-info">
							<h3 class="video-title">Really Cool Fashion 1</h3>
							<ul class="video-meta-data">
								<li class="video-creator">ReallyCoolFashion <i class="fas fa-check-circle"></i></li>
								<li class="video-views">951K views</li>
								<li class="video-upload-date">1 month ago</li>
							</ul>
						</div>

					</div>

				</div>

			</div>

		</section>

		<!-- Recommended channels -->
		<section class="recommended-channels">

			<div class="recommended-channels-group">

				<h2 class="recommended-channels-heading">Featured Channels</h2>

				<div class="recommended-channel">

					<div class="recommended-channel-icon">
						<img src="https://images.unsplash.com/photo-1516257984-b1b4d707412e?w=24&h=24&fit=crop&crop=faces" alt="">
					</div>

					<h3 class="recommended-channel-title">ReallyCoolGuy</h3>

					<button class="recommended-channel-subscribe btn">Subscribed</button>

				</div>

				<div class="recommended-channel">

					<div class="recommended-channel-icon">
						<img src="https://images.unsplash.com/photo-1517492142635-e91271bebe8f?w=24&h=24&fit=crop&crop=faces" alt="">
					</div>

					<h3 class="recommended-channel-title">ReallyCoolGirl</h3>

					<button class="recommended-channel-subscribe btn">Subscribed</button>

				</div>

			</div>

			<div class="recommended-channels-group">

				<h2 class="recommended-channels-heading">Related Channels</h2>

				<div class="recommended-channel">

					<div class="recommended-channel-icon">
						<img src="https://images.unsplash.com/photo-1469032923574-4f1413034019?w=24&h=24&fit=crop" alt="">
					</div>

					<h3 class="recommended-channel-title">ReallyCoolGames</h3>

					<button class="recommended-channel-subscribe btn">Subscribed</button>

				</div>

				<div class="recommended-channel">

					<div class="recommended-channel-icon">
						<img src="https://images.unsplash.com/photo-1504960868016-9a59a5172321?w=24&h=24&fit=crop" alt="">
					</div>

					<h3 class="recommended-channel-title">ReallyCoolMusic</h3>

					<button class="recommended-channel-subscribe btn">Subscribe</button>

				</div>

				<div class="recommended-channel">

					<div class="recommended-channel-icon">
						<img src="https://images.unsplash.com/photo-1472591651607-70e2d88ae3c4?w=24&h=24&fit=crop" alt="">
					</div>

					<h3 class="recommended-channel-title">ReallyCoolFashion</h3>

					<button class="recommended-channel-subscribe btn">Subscribe</button>

				</div>

			</div>

		</section>
		<!-- End of recommended channels section -->

	</div>
	<!-- End of main content container -->

</main>
<!-- End of main content -->
              
            
!

CSS

              
                /*

All grid code is placed in a 'supports' rule (feature query) at the bottom of the CSS (Line 474). 
        
The 'supports' rule will only run if your browser supports CSS grid.

Flexbox is used as a fallback so that browsers which don't support grid will still recieve an identical layout.

*/

/* Base styles */

:root {
    font-size: 10px;
    --grey-text: #828282;
    --black-text: #111;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    font-family: "Roboto", Arial, sans-serif;
    min-height: 100vh;
}

a {
    display: inline-block;
    text-decoration: none;
}

.container {
    max-width: 138rem;
    margin: 0 auto;
    padding: 0 2vw;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    font: inherit;
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    text-transform: uppercase;
    cursor: pointer;
}

::-webkit-scrollbar {
    width: 1.2rem;
    height: 1.2rem;
}

::-webkit-scrollbar-track {
    background-color: #fff;
}

::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 0.5rem;
    border: 0.2rem solid #fff;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #666;
}

/* Masthead */

.masthead {
    display: flex;
    flex-basis: 5.6rem;
    align-items: center;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background-color: #fff;
    padding: 0 2.2rem;
    box-shadow: 0 0.2rem 0.2rem rgba(17, 17, 17, 0.2);
    z-index: 1;
}

.logo {
    flex: 0 0 15rem;
    margin-left: 2.5rem;
}

.site-search {
    flex-grow: 1;
    margin: 0 2.5rem;
}

.menu-btn {
    font-size: 1.6rem;
    color: #888;
    padding: 0 0.5rem;
}

.logo h1 {
    font-family: "Oswald", Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.12rem;
    color: #282828;
    white-space: nowrap;
    cursor: pointer;
}

.logo-icon {
    color: #f00;
    padding-right: 0.5rem;
}

.site-search {
    display: flex;
    height: 3.2rem;
}

.search-input,
.search-btn {
    border: 0.1rem solid #ccc;
}

.search-input {
    flex-basis: 60rem;
    font-size: 1.5rem;
    font-weight: 500;
    border-top-left-radius: 0.3rem;
    border-bottom-left-radius: 0.3rem;
    border-right: none;
    padding-left: 1rem;
    color: var(--black-text);
}

.search-input::-webkit-input-placeholder {
    color: var(--grey-text);
}

.search-input:-ms-input-placeholder {
    color: var(--grey-text);
}

.search-input::-ms-input-placeholder {
    color: var(--grey-text);
}

.search-input::placeholder {
    color: var(--grey-text);
}

.search-btn {
    flex: 0 0 6.5rem;
    border-top-right-radius: 0.3rem;
    border-bottom-right-radius: 0.3rem;
    background-color: #f8f8f8;
    color: var(--black-text);
    cursor: pointer;
}

.search-btn:hover {
    background-color: #f0f0f0;
}

.user-menu {
    flex-basis: 16rem;
    display: flex;
    font-size: 1.6rem;
    color: var(--grey-text);
}

.user-menu .btn {
    flex: 0 0 4rem;
}

/* Channel banner */

.channel-banner {
    flex-basis: 16vw;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    background: url("https://images.unsplash.com/photo-1486597622250-f997d79907f8?w=1400&h=600&fit=crop") no-repeat center 35%;
    background-size: cover;
    padding: 1.6rem;
}

.channel-social-links {
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.4);
}

.channel-social-links li {
    display: inline-block;
    font-size: 1.8rem;
    padding-right: 1rem;
}

.channel-social-links li:last-of-type {
    padding-right: 0;
}

.google-plus {
    color: #dd4d40;
}

.twitter {
    color: #1da1f3;
}

.facebook {
    color: #3b5999;
}

/* Channel info */

.channel-info {
    background-color: #fafafa;
    padding-top: 1.6rem;
}

.channel-info .container {
    display: flex;
    align-items: center;
}

.channel-icon {
    flex-basis: 8rem;
    height: 8rem;
    border-radius: 50%;
    overflow: hidden;
}

.channel-title {
    flex: 1 1 auto;
    margin: 0 2rem;
}

.channel-title h1 {
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--black-text);
    white-space: nowrap;
}

.channel-title i {
    font-size: 1.4rem;
    color: #6e6e6e;
}

.channel-subscriber-count {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--grey-text);
}

.channel-subscribe {
    display: flex;
    height: 3.7rem;
    color: var(--grey-text);
}

.subscribe-btn {
    width: 14.2rem;
    font-size: 1.4rem;
    font-weight: 500;
    background-color: #eee;
    margin-right: 0.4rem;
}

.notification-btn {
    width: 4rem;
    font-size: 2rem;
}

/* Channel navigation */

.channel-nav {
    background-color: #fafafa;
    padding-bottom: 0.5rem;
    white-space: nowrap;
    overflow-x: auto;
}

.channel-nav ul {
    display: flex;
}

.nav-item a {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--grey-text);
    padding: 1.5rem 3.2rem;
}

.nav-item a.current {
    color: var(--black-text);
    border-bottom: 0.3rem solid #6e6e6e;
}

.nav-item a:hover {
    color: var(--black-text);
}

/* Channel content */

.channel-content .container {
    display: flex;
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
    color: var(--grey-text);
}

.channel-videos {
    display: flex;
    flex-direction: column;
    min-width: 42.5rem;
    max-width: 107rem;
}

.video-title {
    color: var(--black-text);
}

.video-meta-data,
.video-description {
    font-size: 1.3rem;
    font-weight: 400;
}

.video-description {
    max-width: 60rem;
    line-height: 1.4;
}

.video-meta-data li {
    display: inline-block;
}

.video-creator {
    padding-right: 0.4rem;
}

.video-views::after {
    content: "\00B7";
    font-size: 2.2rem;
    padding-left: 0.4rem;
    vertical-align: middle;
}

/* Featured video */

.featured-video {
    display: flex;
    cursor: pointer;
}

.featured-video .video-info {
    flex: 1;
}

.featured-video .video-thumbnail {
    margin-right: 1.5rem;
}

.featured-video .video-title {
    font-size: 1.8rem;
    font-weight: 400;
}

/* Video playlists */

.playlist {
    position: relative;
    padding-bottom: 1rem;
    overflow-x: auto;
    margin-top: 2rem;
}

.playlist-title {
    font-size: 1.6rem;
    font-weight: 500;
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    border-top: 0.1rem solid #eee;
    padding: 2rem 0;
    color: var(--black-text);
}

.playlist-videos {
    display: flex;
}

.playlist-video {
    flex-basis: 21rem;
    margin-right: 0.5rem;
    cursor: pointer;
}

.playlist-video .video-title {
    font-size: 1.4rem;
    font-weight: 500;
    padding: 0.5rem 0;
}

.playlist-video .video-creator {
    display: block;
}

/* Recommended channels */

.recommended-channels {
    margin-left: 2rem;
}

.recommended-channels-heading {
    font-size: 1.4rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--grey-text);
    margin-bottom: 2rem;
}

.recommended-channels-group:first-of-type {
    margin-bottom: 2rem;
    border-bottom: 0.1rem solid #eee;
}

.recommended-channel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-bottom: 2rem;
    cursor: pointer;
}

.recommended-channel-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.8rem;
}

.recommended-channel-title {
    flex: 1 0 50%;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--black-text);
}

.recommended-channel-subscribe {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--grey-text);
    background-color: #eee;
    width: 10rem;
    height: 2.4rem;
    margin-top: 0.8rem;
}

/*

The following rule will only run if your browser supports CSS grid.

Remove or comment-out the code block below to see how the browser will fall-back to flexbox styling. 

*/

@supports (display: grid) {
    body {
        display: grid;
        grid-template-rows: 5.6rem 16vw repeat(3, auto);
    }

    .masthead {
        display: grid;
        grid-template-columns: auto 15rem 1fr 16rem;
        grid-column-gap: 2.5rem;
    }

    .site-search {
        display: grid;
        grid-template-columns: minmax(0, 60rem) 6.5rem;
    }

    .user-menu {
        display: grid;
        grid-template-columns: repeat(4, 4rem);
    }

    .channel-info .container {
        display: grid;
        grid-template-columns: 8rem minmax(auto, 1fr) auto;
        grid-column-gap: 2rem;
    }

    .channel-subscribe {
        display: grid;
        grid-template-columns: repeat(2, auto);
        grid-column-gap: 0.4rem;
    }

    .channel-content .container {
        display: grid;
        grid-template-columns: 5fr 1fr;
        grid-gap: 2rem;
    }

    .channel-videos {
        display: grid;
        grid-row-gap: 2rem;
        max-width: 100%;
    }

    .featured-video {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-gap: 1.5rem;
    }

    .playlist-videos {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 21rem;
        grid-column-gap: 0.5rem;
    }

    .recommended-channel {
        display: grid;
        grid-template-columns: 2.4rem 1fr;
        grid-gap: 0.8rem;
    }

    .recommended-channel-subscribe {
        grid-column: 1 / -1;
    }

    .logo,
    .site-search,
    .channel-title,
    .subscribe-btn,
    .playlist,
    .featured-video .video-thumbnail,
    .playlist-video,
    .recommended-channels,
    .recommended-channel-icon,
    .recommended-channel-subscribe {
        margin: 0;
    }

    @media screen and (max-width: 60rem) {
        .masthead {
            grid-template-columns: auto 1fr 16rem;
        }

        .channel-info .container {
            grid-template-columns: repeat(2, auto);
        }

        .channel-content .container {
            grid-template-columns: minmax(42.5rem, 1fr);
        }
    }
}

/* Media queries */

@media screen and (max-width: 60rem) {
    .logo {
        flex-grow: 1;
    }

    .channel-info {
        padding-bottom: 1.6rem;
    }

    .channel-info .container {
        justify-content: space-around;
    }

    .channel-title,
    .channel-subscribe {
        flex: 0 0 auto;
        margin: 0;
    }

    .channel-title h1 {
        font-size: 1.8rem;
    }

    .channel-videos {
        max-width: 100%;
    }

    .recommended-channels,
    .channel-icon,
    .site-search {
        display: none;
    }
}

              
            
!

JS

              
                /*

Full-page view:

https://codepen.io/GeorgePark/full/oEwYYy/

*/

              
            
!
999px

Console