:root {
  color: #000;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #000;
  background: #fff;
}

button,
input {
  font: inherit;
}

.page {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 28px 0 20px;
  border-bottom: 2px solid #000;
}

h2,
p {
  margin: 0;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 360px);
}

.search label {
  font-size: 14px;
  font-weight: 700;
}

.search input {
  min-width: 0;
  width: 100%;
  padding: 9px 10px;
  color: #000;
  background: #fff;
  border: 1px solid #000;
  border-radius: 0;
}

.search input::placeholder {
  color: #000;
  opacity: 1;
}

.search input:focus-visible,
.video-toggle:focus-visible,
video:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.video-list {
  padding-bottom: 48px;
}

.video-item {
  border-bottom: 1px solid #000;
}

.video-heading {
  font-size: 18px;
  line-height: 1.4;
}

.video-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 0;
  color: #000;
  background: #fff;
  border: 0;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.video-toggle::after {
  flex: none;
  content: "+";
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.video-toggle[aria-expanded="true"]::after {
  content: "−";
}

.video-panel {
  padding-bottom: 24px;
}

.video-panel[hidden] {
  display: none;
}

video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.file-meta {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.empty,
.error {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid #000;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 24px, 960px);
  }

  .header {
    padding-top: 24px;
  }

  .search {
    width: 100%;
  }

  .video-toggle {
    padding: 18px 0;
  }
}
