:root {
  color-scheme: dark;
  --black: #0a0a0a;
  --dark: #1f1f1f;
  --blue: #1022e6;
  --blue-bright: #116dff;
  --accent: #c6d530;
  --paper: #f7f7f4;
  --white: #ffffff;
  --muted: #b8b8b8;
  --ink-muted: #5a5f68;
  --line: #353535;
  --radius: 8px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Sora", "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
.brand-mark {
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -8rem;
  z-index: 30;
  padding: .7rem 1rem;
  background: var(--accent);
  color: var(--black);
  font-weight: 800;
}

.skip-link:focus {
  top: 1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 10, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar-inner,
.channel-hero,
.build-panel,
.video-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  width: 68px;
  height: 50px;
  display: grid;
  align-content: center;
  padding: .3rem .5rem;
  background: var(--blue);
  border-bottom: 5px solid var(--accent);
  color: var(--white);
  line-height: .92;
}

.brand-mark b,
.brand-mark strong {
  display: block;
}

.brand-mark b {
  font-size: .66rem;
}

.brand-mark strong {
  color: var(--accent);
  font-size: 1.22rem;
}

.brand-copy strong,
.brand-copy small {
  display: block;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: .98rem;
}

.brand-copy small {
  margin-top: .2rem;
  color: var(--accent);
  font-size: .68rem;
  font-weight: 800;
}

.topnav {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
}

.topnav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: .55rem .8rem;
  color: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
}

.topnav a:hover,
.topnav a:focus-visible,
.tabs a:hover,
.tabs a:focus-visible {
  background: rgba(255, 255, 255, .1);
  outline: 0;
}

.topnav .subscribe {
  background: var(--accent);
  color: var(--black);
}

.channel-hero {
  padding-top: 1rem;
}

.channel-art {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background-color: var(--dark);
  background-image: url("https://i.ytimg.com/vi/3a9OlNF0w2A/maxresdefault.jpg");
  background-position: center 42%;
  background-size: cover;
  border-radius: var(--radius);
}

.channel-art::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  background: var(--blue);
  border-bottom: 5px solid var(--accent);
}

.profile-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  padding: 1.7rem 0 1.2rem;
}

.avatar {
  width: 132px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  background: var(--blue);
  border: 6px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: .9;
  text-align: center;
}

.avatar span {
  display: block;
  color: var(--white);
  font-size: .72rem;
}

.profile-copy {
  min-width: 0;
}

.eyebrow {
  margin-bottom: .45rem;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--white);
}

h1 {
  max-width: 920px;
  font-size: 4.7rem;
  line-height: .95;
}

h2 {
  font-size: 3rem;
  line-height: 1.03;
}

h3 {
  color: inherit;
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.definition {
  margin-top: .6rem;
  color: var(--white);
  font-size: 1.15rem;
}

.definition strong:last-child {
  color: var(--accent);
}

.lead {
  max-width: 800px;
  margin-top: .55rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.15rem;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .72rem 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: var(--accent);
  color: var(--black);
}

.button.secondary {
  background: var(--blue);
  color: var(--white);
}

.button:hover,
.button:focus-visible,
.video-card:hover,
.video-card:focus-visible,
.channel-link:hover,
.channel-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.tabs {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.tabs a {
  position: relative;
  flex: 0 0 auto;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tabs .active {
  color: var(--white);
}

.tabs .active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--accent);
}

.build-band {
  margin-top: 2.2rem;
  background: var(--blue);
  border-top: 8px solid var(--accent);
}

.build-panel {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  gap: 3rem;
  align-items: center;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.build-panel p:last-child {
  color: rgba(255, 255, 255, .88);
  font-size: 1.08rem;
}

.video-section {
  background: var(--paper);
  color: var(--dark);
}

.video-inner {
  padding-top: 4.5rem;
  padding-bottom: 5rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #deded8;
}

.section-head .eyebrow {
  color: var(--blue);
}

.channel-link {
  color: var(--blue);
  font-size: .9rem;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem 1rem;
}

.video-card {
  display: grid;
  align-content: start;
  gap: .7rem;
  min-width: 0;
  color: var(--dark);
  text-decoration: none;
}

.video-card.feature {
  grid-column: span 2;
  grid-row: span 2;
}

.thumbnail {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  border-radius: 6px;
}

.thumbnail img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .2s ease;
}

.video-card:hover .thumbnail img,
.video-card:focus-visible .thumbnail img {
  transform: scale(1.025);
}

.rank {
  position: absolute;
  z-index: 2;
  left: .55rem;
  top: .55rem;
  min-width: 2.35rem;
  min-height: 2rem;
  display: grid;
  place-items: center;
  padding: .15rem .4rem;
  background: var(--blue);
  border-bottom: 3px solid var(--accent);
  color: var(--white);
  font-size: .72rem;
  font-weight: 800;
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 38px;
  translate: -50% -50%;
  border-radius: 7px;
  background: var(--accent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}

.play::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 10px;
  border-left: 15px solid var(--black);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.video-card p {
  margin-top: .15rem;
  color: var(--ink-muted);
  font-size: .86rem;
}

.footer {
  border-top: 8px solid var(--accent);
}

.footer-inner {
  min-height: 150px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.footer strong,
.footer a {
  color: var(--white);
}

.footer a {
  font-weight: 800;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (max-width: 1040px) {
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    min-height: 68px;
  }

  .brand-copy {
    display: none;
  }

  .topnav a:not(.subscribe) {
    display: none;
  }

  .channel-art {
    min-height: 240px;
  }

  .profile-row,
  .build-panel {
    grid-template-columns: 1fr;
  }

  .avatar {
    width: 92px;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .build-panel {
    min-height: 0;
    gap: 1rem;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-card.feature {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 520px) {
  .channel-art {
    min-height: 210px;
    background-position: center;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 2rem;
  }

  .actions,
  .button {
    width: 100%;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-content: center;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
