:root {
  --red: #ce0000;
  --muted: #555;
  --line: #dedede;
  --soft: #f4f4f4;
  --title: Montserrat, Arial, sans-serif;
  color: #000;
  background: #fff;
  font: 15px/1.55 Inter, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { max-width: 1800px; margin: 0 auto; padding: 13px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.wrap { width: min(100% - 112px, 1160px); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: 10px; left: 12px; padding: 8px 12px; background: #fff; transform: translateY(-180%); }
.skip:focus { transform: none; }

.site-header {
  position: absolute;
  z-index: 2;
  top: 42px;
  left: 50%;
  width: min(100% - 68px, 1560px);
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand { display: block; width: fit-content; }
.brand img { opacity: 1; transition: transform .3s; }
.brand:hover img { opacity: .4; }
.brand:is(:hover, :focus-visible, :active) img { transform: scale(1.1); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: fit-content;
  min-height: 45px;
  border: 1px solid transparent;
  border-radius: 22px;
  padding: 10px 19px;
  font: 700 13px/1.3 var(--title);
  text-transform: uppercase;
}
.header-button { background: #fff; }
.header-button:hover { color: var(--red); }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: end;
  min-height: clamp(490px, 45vw, 660px);
  border-radius: 26px;
  background: #121212;
  color: #fff;
}
.hero-cover, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-cover { z-index: -2; object-fit: cover; object-position: 50% 43%; }
.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(0deg, #000e, #0003 73%, #0007),
    linear-gradient(90deg, #0005, transparent 70%);
}
.hero-inner { width: min(100% - 128px, 1360px); margin-inline: auto; padding: 128px 0 63px; }
.hero h1 { font: 700 clamp(52px, 7.4vw, 110px)/.98 var(--title); text-transform: uppercase; letter-spacing: -.065em; }
.hero p { margin-top: 19px; font: 600 clamp(19px, 2.2vw, 28px)/1.25 var(--title); letter-spacing: -.035em; }
.hero-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; }
.hero-button { background: #fff; color: #000; }
.hero-channel-logo { width: clamp(84px, 10.6vw, 144px); height: auto; }
.hero-button:hover { background: #eee; }
.hero-button span { font-size: 16px; }

.collaboration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 22px 8px 0;
}
.collaboration p { color: var(--muted); font-size: 13px; font-weight: 400; }
.collaboration-logos { display: flex; align-items: center; gap: 15px; }
.collaboration-logos img { width: 114px; height: auto; }
.collaboration-logos img + img { width: 104px; }

.archive { padding-block: 52px 72px; }
.section-head, .controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.section-head h2 { font: 700 clamp(35px, 4.6vw, 58px)/1 var(--title); text-transform: uppercase; letter-spacing: -.055em; }
.section-head p { margin-top: 12px; color: var(--muted); }
.text-link { color: var(--red); font: 700 13px/1.4 var(--title); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.controls { padding: 22px 0 14px; margin-top: 10px; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: var(--soft);
  color: #000;
  font: 700 13px/1.2 var(--title);
}
.filters button:hover { color: var(--red); }
.filters button[aria-pressed="true"] { background: #000; color: #fff; }
.search {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(100%, 270px);
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--muted);
}
.search:focus-within { outline: 2px solid var(--red); outline-offset: 2px; }
.search input { width: 100%; min-width: 0; padding: 9px 0; color: #000; border: 0; background: transparent; font-size: 13px; }
.search input:focus-visible { outline: none; }
.search-icon { position: relative; flex: 0 0 13px; height: 13px; border: 1.5px solid currentColor; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 5px; height: 1.5px; left: 9px; top: 10px; background: currentColor; transform: rotate(45deg); }
.result-count { color: var(--muted); font-size: 13px; margin: 14px 0; }
.result-count:empty { display: none; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 19px; }
.card { min-width: 0; }
.card-link { display: block; height: 100%; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.thumb { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 16/9; background: #252525; color: #fff; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0005, transparent 65%); }
.play-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; background: #000b; border: 1px solid #fff9; border-radius: 50%; }
.play-icon::before { content: ""; width: 0; height: 0; margin-left: 3px; border-block: 6px solid transparent; border-left: 9px solid currentColor; }
.duration { position: absolute; z-index: 1; right: 10px; bottom: 10px; border-radius: 7px; padding: 4px 8px; background: #000d; font-size: 11px; font-weight: 700; }
.card-link:hover .play-icon { background: var(--red); }
.card-link:hover img { transform: scale(1.04); }
.card-info { display: grid; align-content: start; gap: 6px; padding: 15px 17px 17px; }
.card-meta { font-size: 12px; color: var(--muted); }
.card-info h3 { font: 700 16px/1.35 var(--title); letter-spacing: -.02em; overflow-wrap: anywhere; }
.card-action { margin-top: 5px; color: var(--red); font: 700 12px/1.3 var(--title); }
.empty { margin-top: 18px; padding: 30px 18px; border-radius: 18px; text-align: center; background: var(--soft); }
.empty p { margin-bottom: 14px; color: var(--muted); }
.dark-button { color: #fff; background: #000; }

.site-footer { border-radius: 24px; background: #000; color: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; }
.footer-brand { display: flex; align-items: center; gap: 11px; text-transform: uppercase; font: 700 13px/1.25 var(--title); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 21px; font-size: 13px; }
.site-footer nav a:hover { text-decoration: underline; }

@media (max-width: 940px) {
  .site-header { top: 27px; }
  .hero-inner { width: calc(100% - 86px); }
  .wrap { width: calc(100% - 64px); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body { padding: 8px; }
  .site-header { width: calc(100% - 36px); top: 18px; }
  .brand img { width: 51px; height: 51px; }
  .hero { min-height: 420px; border-radius: 22px; }
  .hero-inner { width: calc(100% - 44px); padding-bottom: 36px; }
  .hero h1 { max-width: 410px; font-size: clamp(40px, 10vw, 68px); }
  .hero-cover { object-position: 49% 47%; }
  .wrap { width: calc(100% - 28px); }
  .archive { padding-block: 39px 51px; }
  .section-head, .controls { flex-direction: column; align-items: flex-start; gap: 13px; }
  .controls { margin-top: 0; }
  .search { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 480px) { .cards { grid-template-columns: 1fr; gap: 18px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .thumb img, .brand img { transition: none; }
}

.video-player {
  width: min(900px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: #fff;
  background: #101010;
  box-shadow: 0 20px 70px #0008;
}
.video-player::backdrop { background: #000b; }
.player-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 15px 11px 19px; }
.player-head h2 { font: 700 16px/1.3 var(--title); overflow-wrap: anywhere; }
.player-close { width: 44px; height: 44px; border: 0; border-radius: 50%; color: #000; background: #fff; font: 27px/1 Arial, sans-serif; }
.video-player video { display: block; width: 100%; max-height: calc(100dvh - 112px); background: #000; aspect-ratio: 16 / 9; object-fit: contain; }
.video-player > p { padding: 12px 19px 16px; }
